This section describes how to configure a Huawei extended attribute using the rpc method.
Operation |
XPATH |
---|---|
edit-config:create |
/huawei-aaa-radius:radius/radius-server/hw-ap-info-format |
Item |
Data |
Description |
---|---|---|
AP's IP address in Huawei extended attribute HW-AP-Information | include-ap-ip | Set the AP's IP address in Huawei extended attribute HW-AP-Information. |
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123"> <edit-config> <target> <running/> </target> <error-option>rollback-on-error</error-option> <config> <radius xmlns="urn:huawei:params:xml:ns:yang:huawei-aaa-radius"> <radius-server xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge"> <name>test12345</name> <vsys>public</vsys> <hw-ap-info-format>include-ap-ip</hw-ap-info-format> </radius-server> </radius> </config> </edit-config> </rpc>
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123"> <ok/> </rpc-reply>
Sample of failed response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123"> <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>