Interface SystemDnsStaticConfig
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator")
public interface SystemDnsStaticConfig
extends org.opendaylight.yangtools.yang.binding.DataObject
Configuration data for static host entries
This class represents the following YANG schema fragment defined in module openconfig-system
grouping system-dns-static-config {
leaf hostname {
type string;
}
leaf-list alias {
type string;
}
leaf-list ipv4-address {
type oc-inet:ipv4-address;
}
leaf-list ipv6-address {
type oc-inet:ipv6-address;
}
}
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()Return alias, ornullif it is not present.Return hostname, ornullif it is not present.@Nullable Set<Ipv4Address>Return ipv4Address, ornullif it is not present.@Nullable Set<Ipv6Address>Return ipv6Address, ornullif it is not present.Class<? extends SystemDnsStaticConfig>Return alias, guaranteed to be non-null.default @NonNull StringReturn hostname, guaranteed to be non-null.default @NonNull Set<Ipv4Address>Return ipv4Address, guaranteed to be non-null.default @NonNull Set<Ipv6Address>Return ipv6Address, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends SystemDnsStaticConfig> implementedInterface()- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getHostname
String getHostname()Return hostname, ornullif it is not present.Hostname for the static DNS entry- Returns:
Stringhostname, ornullif it is not present.
-
requireHostname
Return hostname, guaranteed to be non-null.Hostname for the static DNS entry- Returns:
Stringhostname, guaranteed to be non-null.- Throws:
NoSuchElementException- if hostname is not present
-
getAlias
Return alias, ornullif it is not present.Additional aliases for the hostname- Returns:
Set<String>alias, ornullif it is not present.
-
requireAlias
Return alias, guaranteed to be non-null.Additional aliases for the hostname- Returns:
Set<String>alias, guaranteed to be non-null.- Throws:
NoSuchElementException- if alias is not present
-
getIpv4Address
@Nullable Set<Ipv4Address> getIpv4Address()Return ipv4Address, ornullif it is not present.List of IPv4 addresses for the host entry- Returns:
Set<Ipv4Address>ipv4Address, ornullif it is not present.
-
requireIpv4Address
Return ipv4Address, guaranteed to be non-null.List of IPv4 addresses for the host entry- Returns:
Set<Ipv4Address>ipv4Address, guaranteed to be non-null.- Throws:
NoSuchElementException- if ipv4Address is not present
-
getIpv6Address
@Nullable Set<Ipv6Address> getIpv6Address()Return ipv6Address, ornullif it is not present.List of IPv6 addresses for the host entry- Returns:
Set<Ipv6Address>ipv6Address, ornullif it is not present.
-
requireIpv6Address
Return ipv6Address, guaranteed to be non-null.List of IPv6 addresses for the host entry- Returns:
Set<Ipv6Address>ipv6Address, guaranteed to be non-null.- Throws:
NoSuchElementException- if ipv6Address is not present
-