This section provides a sample of creating a UCL group using the merge method. You can also use the create method to create a UCL group.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-nac:nac-access/ucl-group |
Item |
Data |
Description |
---|---|---|
index |
20 |
Create a UCL group. |
name |
lsw_ucl |
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="43a8e485-35d2-499e-895c-e2d2d5f555a8"> <edit-config> <target> <running/> </target> <error-option>rollback-on-error</error-option> <config> <nac-access xmlns="urn:huawei:params:xml:ns:yang:huawei-nac"> <ucl-group xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="merge"> <index>20</index> <name>lsw_ucl</name> </ucl-group> </nac-access> </config> </edit-config> </rpc>
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_012824316d704d43adb16b1a4245d273"> <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="13"> <rpc-error> <error-app-tag>1</error-app-tag> <error-message>Service process failed.</error-message> <error-info>Error on node /huawei-nac:nac-access/ucl-group[index="2"]</error-info> </rpc-error> </rpc-reply>