< Home

Adding a Suffix to a Device Name

This section describes how to add a suffix to a device name using the config method.

Table 1 Adding a suffix to a device name

Operation

XPATH

edit-config:config

/huawei-device:device/domain-name

Data Requirement

Item

Data

Description

Suffix of a device name

www.huawei.com

The suffix of a device name is www.huawei.com.

Request Example

<?xml version='1.0' encoding='UTF-8'?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0">
  <edit-config>
    <target>
      <running/>
    </target>
    <config>
      <dev:device xmlns:dev="urn:huawei:params:xml:ns:yang:huawei-device">
        <dev:domain-name>www.huawei.com</dev:domain-name>
      </dev:device>
    </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">
  <error/>
</rpc-reply>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >