This section provides a sample of configuring the user access mode using the merge method. You can also use the create method to configure the user access mode.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/authentication-mode-parameters/mode |
Item |
Data |
Description |
---|---|---|
name |
lsw_auth |
Set the user access mode to multi-share. The authentication profile must exist on the switch. |
mode |
multi-share |
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="DEVICECONFIG_012824316d704d43adb16b1a4245d273"> <edit-config> <target> <running/> </target> <config> <nac-access xmlns="urn:huawei:params:xml:ns:yang:huawei-nac"> <authentication-profile> <name>lsw_auth</name> <authentication-mode-parameters xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge"> <mode>multi-share</mode> </authentication-mode-parameters> </authentication-profile> </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="56"> <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>