No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NETCONF YANG API Reference

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

NETCONF YANG API Reference
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
NTP

NTP

NOTE:

Only the AR161W, AR169FGW-L, AR2220E, and AR3670 support the NTP data model.

Data Model

The data model file matching NTP is huawei-ntp.yang.

Table 3-2221 NTP

Object

Description

/ietf-system:system/ntp/huawei-ntp:authentication/authentication-enable

Configures NTP authentication. The value is of the Boolean type and can be true or false. The value true indicates that NTP authentication is configured, whereas the value false indicates that NTP authentication is cancelled. By default, NTP authentication is not configured.

/ietf-system:system/ntp/huawei-ntp:authentication/authentication-keyid/keyid

Sets the NTP authentication key. The value is an integer that ranges from 1 to 4294967295.

/ietf-system:system/ntp/huawei-ntp:authentication/authentication-keyid/authentication-mode

Indicates the authentication algorithm. The value is of the enumerated type and can be MD5 or HMAC-SHA256.

/ietf-system:system/ntp/huawei-ntp:authentication/authentication-keyid/authentication-password

Indicates the authentication password in plain text or cipher text.

If the string is enclosed in double quotation marks (" "), the string can contain spaces.

The value is a string of case-sensitive characters without spaces:

  • A simple text password is a string of 6 to 255 characters.
  • A ciphertext password is a string of 48 to 348 characters.
    NOTE:

    To improve security, it is recommended that the password contain at least two types of lower-case letters, upper-case letters, numerals, and special characters, and contain at least six characters.

    If a password contains a space, the password must be enclosed in a pair of double quotation marks. Only one pair of double quotation marks is allowed in each password.

/ietf-system:system/ntp/huawei-ntp:authentication/reliable-keyid

Indicates that the key is reliable. The key ID is an integer that ranges from 1 to 4294967295.

/ietf-system:system/ntp/ietf-system:server/authentication-keyid

Indicates the authentication key ID used when messages are transmitted to the remote server. The value is an integer that ranges from 1 to 4294967295. If this parameter is not specified, authentication is not performed.

/ietf-system:system/ntp/ietf-system:server/udp/address

Indicates the remote server IP address or domain name. The value is a string of 1 to 255 case-sensitive characters without spaces. If the string is enclosed in a pair of double quotation marks, it can contain spaces or a valid IP address in dotted decimal notation.

/ietf-system:system/ntp/ietf-system:server/name

Indicates the remote server name. The value is a character string.

/ietf-system:system/ntp/ietf-system:server/prefer

Indicates the remote server as the preferred one. The value is of the Boolean type and can be true or false. The value true indicates that the remote server is specified as the preferred server, whereas the value false indicates that the remote server is not specified as the preferred server. By default, the remote server is not preferred.

/ietf-system:system/ntp/ietf-system:server/vpn-instance

Indicates the name of a VPN instance. The value is a string of 1 to 31 case-sensitive characters without spaces. If the string is enclosed in double quotation marks (" "), the string can contain spaces.

/ietf-system:system/huawei-ntp:ntp-server/refclock-masters/refclock-master/ip-address

Specifies the IP address of the local reference clock.

When no IP address is assigned, the local clock whose IP address is 127.127.1.0 is set as the default NTP primary clock.

The value of ip-address is 127.127.1.u, and u ranges from 0 to 3, which represents the number of the selected

local clock.

/ietf-system:system/huawei-ntp:ntp-server/refclock-masters/refclock-master/stratum

Specifies the stratum of the NTP primary clock.

If this parameter is not specified, the stratum is a default value.

The value of the stratum is an integer that ranges from 1 to 15. The default value is 8. Timer is accurate if the stratum value is small.

Configuring NTP Authentication

Enabling NTP Authentication

This section provides a sample of enabling NTP authentication.

Table 3-2222 Enabling NTP authentication

Operation

XPATH

edit-config:merge

/ietf-system:system/ietf-system:ntp/huawei-ntp:authentication/authentication-enable

Data Requirements
Table 3-2223 Enabling NTP authentication

Item

Data

Description

Enabling NTP authentication

true

Enable NTP authentication.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <system xmlns="urn:ietf:params:xml:ns:yang:ietf-system" xc:operation="merge">
    <ntp>
     <authentication xmlns="urn:huawei:params:xml:ns:yang:huawei-ntp">
      <authentication-enable>true</authentication-enable>
     </authentication>
    </ntp>
   </system>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
  <ok/> 
</rpc-reply> 
Disabling NTP Authentication

This section provides a sample of disabling NTP authentication.

Table 3-2224 Disabling NTP authentication

Operation

XPATH

edit-config:remove

/ietf-system:system/ietf-system:ntp/huawei-ntp:authentication/authentication-enable

Data Requirements
Table 3-2225 Disabling NTP authentication

Item

Data

Description

NTP authentication status

true

Disable NTP authentication.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <system xmlns="urn:ietf:params:xml:ns:yang:ietf-system" xc:operation="merge">
    <ntp>
     <authentication xmlns="urn:huawei:params:xml:ns:yang:huawei-ntp" xc:operation="remove">
      <authentication-enable>true</authentication-enable>
     </authentication>
    </ntp>
   </system>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
  <ok/> 
</rpc-reply> 

Configuring the NTP Authentication Key

Setting an NTP Authentication Key

This section provides a sample of setting an NTP authentication key.

Table 3-2226 Setting an NTP authentication key

Operation

XPATH

edit-config:merge

/ietf-system:system/ietf-system:ntp/huawei-ntp:authentication/authentication-keyid/keyid

/ietf-system:system/ietf-system:ntp/huawei-ntp:authentication/authentication-keyid/authentication-mode

/ietf-system:system/ietf-system:ntp/huawei-ntp:authentication/authentication-keyid/authentication-password

Data Requirements
Table 3-2227 Setting an NTP authentication key

Item

Data

Description

NTP authentication status

true

Set an MD5 authentication key with the key ID 50 and password huawei@123.

NTP authentication key

50

Authentication algorithm

md5

Authentication password

huawei@123

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <system xmlns="urn:ietf:params:xml:ns:yang:ietf-system" xc:operation="merge">
    <ntp>
     <authentication xmlns="urn:huawei:params:xml:ns:yang:huawei-ntp">
      <authentication-enable>true</authentication-enable>
      <authentication-keyid>
       <keyid>50</keyid>
       <authentication-mode>md5</authentication-mode>
       <authentication-password>huawei@123</authentication-password>
      </authentication-keyid>
     </authentication>
    </ntp>
   </system>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
  <ok/> 
</rpc-reply> 
Deleting an NTP Authentication Key

This section provides a sample of deleting an NTP authentication key.

Table 3-2228 Deleting an NTP authentication key

Operation

XPATH

edit-config:delete

/ietf-system:system/ietf-system:ntp/huawei-ntp:authentication/authentication-keyid/keyid

/ietf-system:system/ietf-system:ntp/huawei-ntp:authentication/authentication-keyid/authentication-mode

/ietf-system:system/ietf-system:ntp/huawei-ntp:authentication/authentication-keyid/authentication-password

Data Requirements
Table 3-2229 Deleting an NTP authentication key

Item

Data

Description

NTP authentication status

true

Delete an MD5 authentication key with the key ID 50 and password huawei@123.

NTP authentication key

50

Authentication algorithm

md5

Authentication password

huawei@123

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <system xmlns="urn:ietf:params:xml:ns:yang:ietf-system" xc:operation="merge">
    <ntp>
     <authentication xmlns="urn:huawei:params:xml:ns:yang:huawei-ntp" >
      <authentication-enable>true</authentication-enable>
      <authentication-keyid xc:operation="delete">
       <keyid>50</keyid>
       <authentication-mode>md5</authentication-mode>
       <authentication-password>huawei@123</authentication-password>
      </authentication-keyid>
     </authentication>
    </ntp>
   </system>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
  <ok/> 
</rpc-reply> 

Configuring a Reliable Key

Setting a Reliable Key

This section provides a sample of setting a reliable key.

Table 3-2230 Setting a reliable key

Operation

XPATH

edit-config:merge

/ietf-system:system/ietf-system:ntp/huawei-ntp:authentication/reliable-keyid

Data Requirements
Table 3-2231 Setting a reliable key

Item

Data

Description

Key ID

50

Set the key with key ID 50 as a reliable key.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <system xmlns="urn:ietf:params:xml:ns:yang:ietf-system" xc:operation="merge">
    <ntp>
     <authentication xmlns="urn:huawei:params:xml:ns:yang:huawei-ntp" xc:operation="merge"> 
      <authentication-keyid> 
       <keyid>50</keyid> 
       <authentication-mode>md5</authentication-mode> 
       <authentication-password>huawei@123</authentication-password> 
      </authentication-keyid>
      <reliable-keyid>
       <keyid>50</keyid>
      </reliable-keyid>
     </authentication>
    </ntp>
   </system>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
  <ok/> 
</rpc-reply> 
Canceling a Reliable Key

This section provides a sample of canceling a reliable key.

Table 3-2232 Canceling a reliable key

Operation

XPATH

edit-config:delete

/ietf-system:system/ietf-system:ntp/huawei-ntp:authentication/reliable-keyid

Data Requirements
Table 3-2233 Canceling a reliable key

Item

Data

Description

Key ID

50

Cancel the reliable key with key ID 50.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <system xmlns="urn:ietf:params:xml:ns:yang:ietf-system" xc:operation="merge">
    <ntp>
     <authentication xmlns="urn:huawei:params:xml:ns:yang:huawei-ntp">   
      <reliable-keyid xc:operation="delete">
       <keyid>50</keyid>
      </reliable-keyid>
     </authentication>
    </ntp>
   </system>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
  <ok/> 
</rpc-reply> 

Configuring the NTP Server Mode

Setting the NTP Server Mode

This section provides a sample of setting the NTP server mode.

Table 3-2234 Setting the NTP server mode

Operation

XPATH

edit-config:merge

/ietf-system:system/ietf-system:ntp/ietf-system:server/authentication-keyid

/ietf-system:system/ietf-system:ntp/ietf-system:server/udp/address

/ietf-system:system/ietf-system:ntp/ietf-system:server/name

/ietf-system:system/ietf-system:ntp/ietf-system:server/prefer

/ietf-system:system/ietf-system:ntp/ietf-system:server/vpn-instance

Data Requirements
Table 3-2235 Setting the NTP server mode

Item

Data

Description

Authentication key ID used when messages are transmitted to the remote server

50

Set the remote server name to server3 and IP address to 10.1.1.1 for the NTP server. Specify the key ID used when messages are transmitted to the remote server as 50, and specify a VPN instance ntptest for the NTP server, and specify this server as the preferred server.

NOTE:

Before specifying a VPN instance for the NTP server, you must create this VPN instance according to Configuring a VPN Instance.

Remote server IP address

10.10.1.1

Remote server name

server3

Whether the remote server is specified as the preferred server

true

VPN instance name

ntptest

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <vpn-instances xmlns="urn:huawei:params:xml:ns:yang:huawei-l3vpn">
    <vpn-instance>
     <vpn-instance-name>ntptest</vpn-instance-name>
     <ipv4-family xmlns="urn:huawei:params:xml:ns:yang:huawei-bgp-l3vpn">
      <route-distinguisher>213:1</route-distinguisher>
     </ipv4-family>
    </vpn-instance>
   </vpn-instances> 
   <system xmlns="urn:ietf:params:xml:ns:yang:ietf-system" xc:operation="merge">
    <ntp>
     <authentication xmlns="urn:huawei:params:xml:ns:yang:huawei-ntp" xc:operation="replace">
       <authentication-enable>true</authentication-enable>
        <authentication-keyid>
         <keyid>50</keyid>
         <authentication-mode>md5</authentication-mode>
         <authentication-password>huawei@1234</authentication-password>
        </authentication-keyid>
      <reliable-keyid>
       <keyid>50</keyid>
      </reliable-keyid>
     </authentication>
     <server xc:operation="merge">
      <udp>
       <address>10.10.1.1</address>
      </udp>
      <name>server3</name>
      <prefer>true</prefer>
      <vpn-instance xmlns="urn:huawei:params:xml:ns:yang:huawei-ntp">ntptest</vpn-instance>
       <authentication-keyid xmlns="urn:huawei:params:xml:ns:yang:huawei-ntp">50</authentication-keyid>
     </server>
    </ntp>
   </system>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
  <ok/> 
</rpc-reply> 
Canceling the NTP Server Mode

This section provides a sample of canceling the NTP server mode.

Table 3-2236 Canceling the NTP server mode

Operation

XPATH

edit-config:delete

/ietf-system:system/ietf-system:ntp/ietf-system:server/authentication-keyid

/ietf-system:system/ietf-system:ntp/ietf-system:server/udp/address

/ietf-system:system/ietf-system:ntp/ietf-system:server/name

/ietf-system:system/ietf-system:ntp/ietf-system:server/prefer

/ietf-system:system/ietf-system:ntp/ietf-system:server/vpn-instance

Data Requirements
Table 3-2237 Canceling the NTP server mode

Item

Data

Description

Authentication key ID used when messages are transmitted to the remote server

50

Cancel the remote server name server3 and IP address 10.1.1.1 of the NTP server. Specify the key ID used when messages are transmitted to the remote server as 50, and specify a VPN instance ntptest for the NTP server, and specify this server as the preferred server.

NOTE:

Before specifying a VPN instance for the NTP server, you must create this VPN instance according to Configuring a VPN Instance.

Remote server IP address

10.10.1.1

Remote server name

server3

Whether the remote server is specified as the preferred server

true

VPN instance name

ntptest

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <vpn-instances xmlns="urn:huawei:params:xml:ns:yang:huawei-l3vpn">
    <vpn-instance>
     <vpn-instance-name>ntptest</vpn-instance-name>
     <ipv4-family xmlns="urn:huawei:params:xml:ns:yang:huawei-bgp-l3vpn">
      <route-distinguisher>213:1</route-distinguisher>
     </ipv4-family>
    </vpn-instance>
   </vpn-instances> 
   <system xmlns="urn:ietf:params:xml:ns:yang:ietf-system" xc:operation="merge">
    <ntp>
     <authentication xmlns="urn:huawei:params:xml:ns:yang:huawei-ntp" xc:operation="merge">
       <authentication-enable>true</authentication-enable>
        <authentication-keyid>
         <keyid>50</keyid>
         <authentication-mode>md5</authentication-mode>
         <authentication-password>huawei@1234</authentication-password>
        </authentication-keyid>
      <reliable-keyid>
       <keyid>50</keyid>
      </reliable-keyid>
     </authentication>
     <server xc:operation="delete">
      <udp>
       <address>10.10.1.1</address>
      </udp>
      <name>server3</name>
      <prefer>true</prefer>
      <vpn-instance xmlns="urn:huawei:params:xml:ns:yang:huawei-ntp">ntptest</vpn-instance>
       <authentication-keyid xmlns="urn:huawei:params:xml:ns:yang:huawei-ntp">50</authentication-keyid>
     </server>
    </ntp>
   </system>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
  <ok/> 
</rpc-reply> 

Configuring a VPN Instance Name

Specifying a VPN Instance Name

This section provides a sample of specifying a VPN instance name.

Table 3-2238 Specifying a VPN instance name

Operation

XPATH

edit-config:merge

/ietf-system:system/ietf-system:ntp/ietf-system:server/vpn-instance

Data Requirements
Table 3-2239 Specifying a VPN instance name

Item

Data

Description

VPN instance name

ntptest

Specify a VPN instance ntptest for the NTP server.

NOTE:

Before specifying a VPN instance for the NTP server, you must create this VPN instance according to Configuring a VPN Instance.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <vpn-instances xmlns="urn:huawei:params:xml:ns:yang:huawei-l3vpn">
    <vpn-instance>
     <vpn-instance-name>ntptest</vpn-instance-name>
     <ipv6-family xmlns="urn:huawei:params:xml:ns:yang:huawei-bgp-l3vpn">
      <route-distinguisher>215:1</route-distinguisher>
     </ipv6-family>
    </vpn-instance>
   </vpn-instances> 
   <system xmlns="urn:ietf:params:xml:ns:yang:ietf-system" xc:operation="merge">
    <ntp>
     <authentication xmlns="urn:huawei:params:xml:ns:yang:huawei-ntp" xc:operation="merge">
      <authentication-keyid>
       <keyid>50</keyid>
       <authentication-mode>md5</authentication-mode>
       <authentication-password>huawei@1234</authentication-password>
      </authentication-keyid>
     </authentication>
     <server xc:operation="merge">
      <udp>
       <address>10.10.1.1</address>
      </udp>
      <name>server3</name>
      <vpn-instance xmlns="urn:huawei:params:xml:ns:yang:huawei-ntp">ntptest</vpn-instance>
     </server>
    </ntp>
   </system>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
  <ok/> 
</rpc-reply> 
Deleting a VPN Instance Name

This section provides a sample of deleting a VPN instance name.

Table 3-2240 Deleting a VPN instance name

Operation

XPATH

edit-config:delete

/ietf-system:system/ietf-system:ntp/ietf-system:server/vpn-instance

Data Requirements
Table 3-2241 Deleting a VPN instance name

Item

Data

Description

VPN instance name

ntptest

Delete a VPN instance ntptest of the NTP server.

NOTE:

Before specifying a VPN instance for the NTP server, you must create this VPN instance according to Configuring a VPN Instance.

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
 <edit-config>
  <target>
   <running/>
  </target>
  <error-option>rollback-on-error</error-option>
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
   <vpn-instances xmlns="urn:huawei:params:xml:ns:yang:huawei-l3vpn">
    <vpn-instance>
     <vpn-instance-name>ntptest</vpn-instance-name>
     <ipv6-family xmlns="urn:huawei:params:xml:ns:yang:huawei-bgp-l3vpn">
      <route-distinguisher>215:1</route-distinguisher>
     </ipv6-family>
    </vpn-instance>
   </vpn-instances> 
   <system xmlns="urn:ietf:params:xml:ns:yang:ietf-system" xc:operation="merge">
    <ntp>
     <authentication xmlns="urn:huawei:params:xml:ns:yang:huawei-ntp" xc:operation="merge">
      <authentication-keyid>
       <keyid>50</keyid>
       <authentication-mode>md5</authentication-mode>
       <authentication-password>huawei@1234</authentication-password>
      </authentication-keyid>
     </authentication>
     <server xc:operation="delete">
      <udp>
       <address>10.10.1.1</address>
      </udp>
      <name>server3</name>
      <vpn-instance xmlns="urn:huawei:params:xml:ns:yang:huawei-ntp">ntptest</vpn-instance>
     </server>
    </ntp>
   </system>
  </config>
 </edit-config>
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> 
  <ok/> 
</rpc-reply> 

Configuring the Local Clock as the NTP Master Clock

Configuring the Local Clock as the NTP Master Clock

The section provides a sample of configuring the local clock as the NTP master clock that provides the synchronizing time for other devices.

Table 3-2242 Configuring the local clock as the NTP master clock

Operation

XPATH

edit-config:merge

/ietf-system:system/huawei-ntp:ntp-server/refclock-masters/refclock-master/ip-address

/ietf-system:system/huawei-ntp:ntp-server/refclock-masters/refclock-master/stratum

Data Requirements
Table 3-2243 Configuring the local clock as the NTP master clock

Item

Data

Description

Local reference clock

127.127.1.1

Configures the local clock as an NTP master clock that provides the synchronization time for other devices.

Stratum of the NTP master clock

1

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <system xmlns="urn:ietf:params:xml:ns:yang:ietf-system" xc:operation="merge"> 
    <ntp-server xmlns="urn:huawei:params:xml:ns:yang:huawei-ntp" xc:operation="merge"> 
     <refclock-masters> 
      <refclock-master> 
       <ip-address>127.127.1.1</ip-address> 
       <stratum>1</stratum> 
      </refclock-master> 
     </refclock-masters> 
    </ntp-server> 
   </system> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2"> 
  <ok/> 
</rpc-reply> 
Deleting the Local Clock as the NTP Master Clock

This section provides a sample of deleting the local clock as the NTP master clock.

Table 3-2244 Deleting the local clock as the NTP master clock

Operation

XPATH

edit-config:remove

/ietf-system:system/huawei-ntp:ntp-server/refclock-masters/refclock-master/ip-address

/ietf-system:system/huawei-ntp:ntp-server/refclock-masters/refclock-master/stratum

Data Requirements
Table 3-2245 Deleting the local clock as the NTP master clock

Item

Data

Description

Local reference clock

127.127.1.1

Deletes the local clock as the NTP master clock.

Stratum of the NTP master clock

1

Request Example
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2"> 
 <edit-config> 
  <target> 
   <running/> 
  </target> 
  <error-option>rollback-on-error</error-option> 
  <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
   <system xmlns="urn:ietf:params:xml:ns:yang:ietf-system" xc:operation="merge"> 
    <ntp-server xmlns="urn:huawei:params:xml:ns:yang:huawei-ntp"> 
     <refclock-masters xc:operation="remove"> 
      <refclock-master> 
       <ip-address>127.127.1.1</ip-address> 
       <stratum>1</stratum> 
      </refclock-master> 
     </refclock-masters> 
    </ntp-server> 
   </system> 
  </config> 
 </edit-config> 
</rpc>
Response Example

Sample of successful response

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">  
   <ok/>  
 </rpc-reply>
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100022096

Views: 9589

Downloads: 69

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next