< Home

Data Model

The configuration model file matching NTP is ietf-system.yang and huawei-ntp.yang.

Table 1 NTP server configuration

Object

Description

Value Remarks

/ietf-system:system/ntp/enabled

Enables or disables IPv4 NTP and IPv6 NTP.

The value is of the Boolean type:
  • true: enable
  • false: disable

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:
  • ipv4-address: specifies an IPv4 address in dotted decimal notation.
  • ipv6-address: specifies an IPv6 address, which is a 32-digit hexadecimal number.

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:
  • server: NTP server
  • peer: NTP peer

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:
  • true: enable
  • false: disable

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:
  • true: indicates that the remote server is specified as the preferentially selected server.
  • false: indicates that the remote server is not specified as the preferentially selected server.

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:
  • true: enable
  • false: disable

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:
  • true: enable
  • false: disable

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

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >