< Home

Configuring an IPv6 NTP Source Interface

This section provides a sample of configuring an IPv6 NTP source interface using the edit-config method.

Table 1 Configuring an IPv6 NTP source interface

Operation

XPATH

edit-config

/ietf-system:system/ntp/huawei-ntp:source-interface-ipv6

Data requirement

Table 2 Configuring an IPv6 NTP source interface

Item

Data

Description

Set an IPv6 NTP source interface

Vlanif1

Ensure that this interface exists and has been configured on the device. For details about the configuration, see Configuring Basic Attributes of an Interface.

Request example

<?xml version='1.0' encoding='UTF-8'?>
<rpc message-id="6" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <sys:system xmlns:sys="urn:ietf:params:xml:ns:yang:ietf-system">
        <sys:ntp>
          <huawei-ntp:source-interface-ipv6 xmlns:huawei-ntp="urn:huawei:params:xml:ns:yang:huawei-ntp">Vlanif1</huawei-ntp:source-interface-ipv6>
        </sys:ntp>
      </sys:system>
    </config>
  </edit-config>
</rpc>

Response example

Sample of successful response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <ok/>
</rpc-reply>

Sample of failed response

<?xml version='1.0' encoding='UTF-8'?>
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
  <rpc-error>
    <error-type>application</error-type>
    <error-tag>operation-failed</error-tag>
    <error-severity>error</error-severity>
    <error-message>parse rpc config error.</error-message>
  </rpc-error>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic