Interface SystemNtpServerConfig
- 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 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;
}
}
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThis class represents the following YANG schema fragment defined in module openconfig-system -
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 TypeMethodDescriptionReturn address, ornullif it is not present.Return associationType, ornullif it is not present.Return iburst, ornullif it is not present.getPort()Return port, ornullif it is not present.Return prefer, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint8Return version, ornullif it is not present.Class<? extends SystemNtpServerConfig>default @NonNull HostReturn address, guaranteed to be non-null.default @NonNull SystemNtpServerConfig.AssociationTypeReturn associationType, guaranteed to be non-null.default @NonNull BooleanReturn iburst, guaranteed to be non-null.default @NonNull PortNumberReturn port, guaranteed to be non-null.default @NonNull BooleanReturn prefer, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint8Return version, 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 SystemNtpServerConfig> 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
-
getAddress
Host getAddress()Return address, ornullif it is not present.The address or hostname of the NTP server.- Returns:
Hostaddress, ornullif it is not present.
-
requireAddress
Return address, guaranteed to be non-null.The address or hostname of the NTP server.- Returns:
Hostaddress, guaranteed to be non-null.- Throws:
NoSuchElementException- if address is not present
-
getPort
PortNumber getPort()Return port, ornullif it is not present.The port number of the NTP server.- Returns:
PortNumberport, ornullif it is not present.
-
requirePort
Return port, guaranteed to be non-null.The port number of the NTP server.- Returns:
PortNumberport, guaranteed to be non-null.- Throws:
NoSuchElementException- if port is not present
-
getVersion
org.opendaylight.yangtools.yang.common.Uint8 getVersion()Return version, ornullif it is not present.Version number to put in outgoing NTP packets- Returns:
Uint8version, ornullif 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:
Uint8version, guaranteed to be non-null.- Throws:
NoSuchElementException- if version is not present
-
getAssociationType
SystemNtpServerConfig.AssociationType getAssociationType()Return associationType, ornullif it is not present.The desired association type for this NTP server.- Returns:
AssociationTypeassociationType, ornullif it is not present.
-
requireAssociationType
Return associationType, guaranteed to be non-null.The desired association type for this NTP server.- Returns:
AssociationTypeassociationType, guaranteed to be non-null.- Throws:
NoSuchElementException- if associationType is not present
-
getIburst
Boolean getIburst()Return iburst, ornullif it is not present.Indicates whether this server should enable burst synchronization or not.- Returns:
Booleaniburst, ornullif it is not present.
-
requireIburst
Return iburst, guaranteed to be non-null.Indicates whether this server should enable burst synchronization or not.- Returns:
Booleaniburst, guaranteed to be non-null.- Throws:
NoSuchElementException- if iburst is not present
-
getPrefer
Boolean getPrefer()Return prefer, ornullif it is not present.Indicates whether this server should be preferred or not.- Returns:
Booleanprefer, ornullif it is not present.
-
requirePrefer
Return prefer, guaranteed to be non-null.Indicates whether this server should be preferred or not.- Returns:
Booleanprefer, guaranteed to be non-null.- Throws:
NoSuchElementException- if prefer is not present
-