Interface SystemNtpServerConfig

  • 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 SystemNtpServerConfig
    extends org.opendaylight.yangtools.yang.binding.DataObject
    Configuration data for NTP servers

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

     grouping system-ntp-server-config {
       leaf address {
         type oc-inet:host;
       }
       leaf port {
         type oc-inet:port-number;
         default 123;
       }
       leaf version {
         type uint8 {
           range 1..4;
         }
         default 4;
       }
       leaf association-type {
         type enumeration {
           enum SERVER {
           }
           enum PEER {
           }
           enum POOL {
           }
         }
         default SERVER;
       }
       leaf iburst {
         type boolean;
         default false;
       }
       leaf prefer {
         type boolean;
         default false;
       }
     }
     
    The schema path to identify an instance is openconfig-systemsystem-ntp-server-config
    • Field Detail

      • QNAME

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

      • implementedInterface

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

        Host getAddress()
        Return address, or null if it is not present.
             
                 The address or hostname of the NTP server.
             
         
        Returns:
        Host address, or null if it is not present.
      • requireAddress

        default @NonNull Host requireAddress()
        Return address, guaranteed to be non-null.
             
                 The address or hostname of the NTP server.
             
         
        Returns:
        Host 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 NTP 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 NTP server.
             
         
        Returns:
        PortNumber port, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if port is not present
      • getVersion

        org.opendaylight.yangtools.yang.common.Uint8 getVersion()
        Return version, or null if it is not present.
             
                 Version number to put in outgoing NTP packets
             
         
        Returns:
        Uint8 version, or null if it is not present.
      • requireVersion

        default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireVersion()
        Return version, guaranteed to be non-null.
             
                 Version number to put in outgoing NTP packets
             
         
        Returns:
        Uint8 version, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if version is not present
      • getAssociationType

        SystemNtpServerConfig.AssociationType getAssociationType()
        Return associationType, or null if it is not present.
             
                 The desired association type for this NTP server.
             
         
        Returns:
        AssociationType associationType, or null if it is not present.
      • requireAssociationType

        default @NonNull SystemNtpServerConfig.AssociationType requireAssociationType()
        Return associationType, guaranteed to be non-null.
             
                 The desired association type for this NTP server.
             
         
        Returns:
        AssociationType associationType, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if associationType is not present
      • getIburst

        Boolean getIburst()
        Return iburst, or null if it is not present.
             
                 Indicates whether this server should enable burst synchronization or not.
             
         
        Returns:
        Boolean iburst, or null if it is not present.
      • requireIburst

        default @NonNull Boolean requireIburst()
        Return iburst, guaranteed to be non-null.
             
                 Indicates whether this server should enable burst synchronization or not.
             
         
        Returns:
        Boolean iburst, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if iburst is not present
      • getPrefer

        Boolean getPrefer()
        Return prefer, or null if it is not present.
             
                 Indicates whether this server should be preferred or not.
             
         
        Returns:
        Boolean prefer, or null if it is not present.
      • requirePrefer

        default @NonNull Boolean requirePrefer()
        Return prefer, guaranteed to be non-null.
             
                 Indicates whether this server should be preferred or not.
             
         
        Returns:
        Boolean prefer, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if prefer is not present