This section describes how to add a suffix to a device name using the config method.
Operation |
XPATH |
---|---|
edit-config:config |
/huawei-device:device/domain-name |
Item |
Data |
Description |
---|---|---|
Suffix of a device name |
www.huawei.com |
The suffix of a device name is www.huawei.com. |
<?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>
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>