The configuration model file matching NTP is ietf-system.yang and huawei-ntp.yang.
Object |
Description |
Value | Remarks |
---|---|---|---|
/ietf-system:system/ntp/enabled |
Enables or disables IPv4 NTP and IPv6 NTP. |
The value is of the Boolean type:
The default value is true. |
N/A |
/ietf-system:system/ntp/server/transport/udp/address |
Indicates the IP address of the NTP server. |
The value is a character string:
|
N/A |
/ietf-system:system/ntp/server/transport/udp/port |
Indicates the number of the port that sends NTP unicast packets. |
The value is an integer that ranges from 1025 to 65535. The default value is 123. |
N/A |
/ietf-system:system/ntp/server/transport/association-type |
Specifies the switch as an NTP peer or NTP server. |
The value is of the enumerated type:
|
Determine whether an IPv4 or IPv6 NTP peer or NTP server is configured based on the configured NTP server address. |
/ietf-system:system/ntp/server/transport/iburst |
Indicates that the device sends a burst of packets when receiving a response of an unreachable server. |
The value is of the Boolean type:
The default value is false. |
N/A |
/ietf-system:system/ntp/server/transport/prefer |
Indicates that the remote server is the preferentially selected server. |
The value is of the Boolean type:
The default value is false. |
N/A |
/ietf-system:system/huawei-ntp:ntp-server:ipv4-enable |
Indicates whether the IPv4 NTP function is enabled. |
The value is of the Boolean type:
The default value is true. |
N/A |
/ietf-system:system/huawei-ntp:ntp-server:ipv6-enable |
Indicates whether the IPv6 NTP function is enabled. |
The value is of the Boolean type:
The default value is true. |
N/A |
/ietf-system:system/ntp/huawei-ntp:source-interface-ipv6 |
Indicates the source interface through which the switch sends IPv6 NTP packets. |
The value is a character string in the format of interface-type interface-number. |
N/A |