Network Time Protocol.
Version: 2019-04-13
submodule huawei-ntp-type { yang-version 1; belongs-to huawei-ntp { prefix ntp; } organization "Huawei Technologies Co., Ltd."; contact "Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China Website: http://www.huawei.com Email: support@huawei.com"; description "Network Time Protocol."; revision "2019-04-13" { description "Initial revision."; reference "Huawei private."; } typedef debug-type { type string; description "It is bit flag used for enabling and disabling ntp debug."; } typedef authentication-mode { type enumeration { enum "MD5" { value 1; description "The NTP authentication mode is MD5."; } enum "HMAC-SHA256" { value 2; description "The NTP authentication mode is HMAC-SHA256."; } } description "Used to identify which mode of authentication, Md5 or Hmac."; } typedef access-level { type enumeration { enum "Peer" { value 1; description "Indicates the NTP Access Level is Peer. It sets the fully access authority. Both time request and control query can be performed on the local NTP service, and the local clock can be synchronized to the remote server."; } enum "Query" { value 2; description "Indicates the NTP Access Level is Query. It sets the maximum access limitation. Only control query can be performed on the local NTP service."; } enum "Server" { value 3; description "Indicates the NTP Access Level is Server. It enables the server access and query. Both time requests and control query can be performed on the local NTP service, but the local clock cannot be synchronized to the remote server."; } enum "Synchronization" { value 4; description "Indicates the NTP Access Level is Synchronization. It enables the server to access. Only time request can be performed on the local NTP service."; } enum "Limited" { value 5; description "Indicates the NTP Access Level is Limited."; } } description "NTP has 5 ACL level, it identify NTP acl level."; } typedef cast-mode { type enumeration { enum "Client" { value 1; description "Indicates that the current mode is client."; } enum "Server" { value 2; description "Indicates that the current mode is server."; } } description "It defines NTP server client mode."; } typedef port-version { type enumeration { enum "Version1" { value 1; description "Version1:"; } enum "Version2" { value 2; description "Version2:"; } enum "Version3" { value 3; description "Version3:"; } } description "It identifies version of NTP."; } typedef peer-mode { type enumeration { enum "Peer" { value 1; description "Indicates that the system's current configuration type is peer."; } enum "Server" { value 2; description "Indicates that the system's current configuration type is server."; } } description "It defines NTP server or peer mode."; } typedef sync-state { type enumeration { enum "clock-is-not-set" { value 0; description "Indicates that the clock is not set."; } enum "frequency-is-set" { value 1; description "Indicates that clock frequency is obtained from the configuration."; } enum "time-is-set" { value 2; description "Indicates that the time is set."; } enum "mode-is-frequency" { value 3; description "Indicates that the clock is set but the frequency is not determined."; } enum "clock-is-synchronized" { value 4; description "Indicates that the clock is synchronized."; } enum "spike-is-detected." { value 5; description "Indicates that the spike is detected."; } } description "It defines NTP clock sync state."; } typedef clock-status { type enumeration { enum "unsynchronized" { value 0; description "Indicates that the clock is unsynchronized."; } enum "synchronized" { value 1; description "Indicates that the clock is synchronized."; } } description "It defines NTP clock sync status."; } typedef is-configured { type enumeration { enum "No" { value 0; description "NTP is not configured."; } enum "Yes" { value 1; description "NTP is configured."; } } description "It tells weather current source is configured source or not."; } typedef addr-family-type { type enumeration { enum "IPv4" { value 1; description "IPv4 address family."; } enum "IPv6" { value 2; description "IPv6 address family."; } } description "It defines address family supported by NTP."; } typedef extend-addr-family-type { type enumeration { enum "IPv4" { value 1; description "IPv4 address family."; } enum "IPv6" { value 2; description "IPv6 address family."; } enum "IPv4-AND-IPv6" { value 3; description "IPv4 and IPv6 address family."; } } description "It defines extended address family supported by NTP."; } } // submodule huawei-ntp-type
© 2023 YumaWorks, Inc. All rights reserved.