Interface SystemDnsServersConfig

  • All Superinterfaces:
    org.opendaylight.yangtools.yang.binding.BindingObject, org.opendaylight.yangtools.yang.binding.DataContainer, org.opendaylight.yangtools.yang.binding.DataObject
    All Known Subinterfaces:
    Config, State

    @Generated("mdsal-binding-generator")
    public interface SystemDnsServersConfig
    extends org.opendaylight.yangtools.yang.binding.DataObject
    Configuration data for DNS resolvers

    This class represents the following YANG schema fragment defined in module openconfig-system

     grouping system-dns-servers-config {
       leaf address {
         type oc-inet:ip-address;
       }
       leaf port {
         type oc-inet:port-number;
         default 53;
       }
     }
     
    The schema path to identify an instance is openconfig-systemsystem-dns-servers-config
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

        Class<? extends SystemDnsServersConfig> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getAddress

        IpAddress getAddress()
        Return address, or null if it is not present.
             
                 The address of the DNS server, can be either IPv4 or IPv6.
             
         
        Returns:
        IpAddress address, or null if it is not present.
      • requireAddress

        default @NonNull IpAddress requireAddress()
        Return address, guaranteed to be non-null.
             
                 The address of the DNS server, can be either IPv4 or IPv6.
             
         
        Returns:
        IpAddress address, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if address is not present
      • getPort

        PortNumber getPort()
        Return port, or null if it is not present.
             
                 The port number of the DNS server.
             
         
        Returns:
        PortNumber port, or null if it is not present.
      • requirePort

        default @NonNull PortNumber requirePort()
        Return port, guaranteed to be non-null.
             
                 The port number of the DNS server.
             
         
        Returns:
        PortNumber port, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if port is not present