Interface SystemNtpConfig
- 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 SystemNtpConfig
extends org.opendaylight.yangtools.yang.binding.DataObject
Configuration data for system-wide NTP operation.
This class represents the following YANG schema fragment defined in module openconfig-system
grouping system-ntp-config {
leaf enabled {
type boolean;
default false;
}
leaf ntp-source-address {
type oc-inet:ip-address;
}
leaf enable-ntp-auth {
type boolean;
default false;
}
}
-
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 enabled, ornullif it is not present.Return enableNtpAuth, ornullif it is not present.Return ntpSourceAddress, ornullif it is not present.Class<? extends SystemNtpConfig>default @NonNull BooleanReturn enabled, guaranteed to be non-null.default @NonNull BooleanReturn enableNtpAuth, guaranteed to be non-null.default @NonNull IpAddressReturn ntpSourceAddress, 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 SystemNtpConfig> 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
-
getEnabled
Boolean getEnabled()Return enabled, ornullif it is not present.Enables the NTP protocol and indicates that the system should attempt to synchronize the system clock with an NTP server from the servers defined in the 'ntp/server' list.- Returns:
Booleanenabled, ornullif it is not present.
-
requireEnabled
Return enabled, guaranteed to be non-null.Enables the NTP protocol and indicates that the system should attempt to synchronize the system clock with an NTP server from the servers defined in the 'ntp/server' list.- Returns:
Booleanenabled, guaranteed to be non-null.- Throws:
NoSuchElementException- if enabled is not present
-
getNtpSourceAddress
IpAddress getNtpSourceAddress()Return ntpSourceAddress, ornullif it is not present.Source address to use on outgoing NTP packets- Returns:
IpAddressntpSourceAddress, ornullif it is not present.
-
requireNtpSourceAddress
Return ntpSourceAddress, guaranteed to be non-null.Source address to use on outgoing NTP packets- Returns:
IpAddressntpSourceAddress, guaranteed to be non-null.- Throws:
NoSuchElementException- if ntpSourceAddress is not present
-
getEnableNtpAuth
Boolean getEnableNtpAuth()Return enableNtpAuth, ornullif it is not present.Enable or disable NTP authentication -- when enabled, the system will only use packets containing a trusted authentication key to synchronize the time.- Returns:
BooleanenableNtpAuth, ornullif it is not present.
-
requireEnableNtpAuth
Return enableNtpAuth, guaranteed to be non-null.Enable or disable NTP authentication -- when enabled, the system will only use packets containing a trusted authentication key to synchronize the time.- Returns:
BooleanenableNtpAuth, guaranteed to be non-null.- Throws:
NoSuchElementException- if enableNtpAuth is not present
-