This section provides a sample of configuring the maximum number of access users allowed on the interface in multi-authen mode using the merge method. You can also use the create method to configure the maximum number of access users allowed on the interface in multi-authen mode.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/authentication-mode-parameters/max-user/multi-authen/user-num/max-user-num /huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/authentication-mode-parameters/max-user/multi-authen/user-num/access-type /huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/authentication-mode-parameters/mode /huawei-nac:nac-access/configure-mode/unified-mode/authentication-profile/authentication-mode-parameters/max-user/multi-authen/default-max-user-num |
Item |
Data |
Description |
---|---|---|
name |
lsw_auth |
Configure the maximum number of access users allowed on the interface in multi-authen mode. |
mac |
200 |
|
dot1x |
210 |
|
portal |
220 |
|
default-max-user-num |
1000 |
<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-authen</mode> <user-num xc:operation="merge"> <access-type xc:operation="merge">mac</access-type> <max-user-num xc:operation="merge">200</max-user-num> </user-num> <user-num xc:operation="merge"> <access-type xc:operation="merge">dot1x</access-type> <max-user-num xc:operation="merge">210</max-user-num> </user-num> <user-num xc:operation="merge"> <access-type xc:operation="merge">portal</access-type> <max-user-num xc:operation="merge">220</max-user-num> </user-num> <default-max-user-num>1000</default-max-user-num> </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="61"> <rpc-error> <error-app-tag>-1</error-app-tag> <error-message>Authorize mode multi-authen failed</error-message> <error-info>Error on node /huawei-nac:nac-access/authentication-profile[name="lsw_auth"]/authentication-mode-parameters/user-num[access-type="mac"]/max-user-num</error-info> </rpc-error> </rpc-reply>