This section provides a sample of configuring the shared key for the switch to exchange information with the Portal server using the merge method. You can also use the create method to configure the shared key for the switch to exchange information with the Portal server.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-aaa-portal/portal/portal-server/shared-key |
Item |
Data |
Description |
---|---|---|
shared-key |
zLUYANG12#$%()aa |
Set the shared key for the switch to exchange information with the Portal server to zLUYANG12#$%()aa. |
<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 xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0"> <portal xmlns="urn:huawei:params:xml:ns:yang:huawei-aaa-portal"> <portal-server> <name>huawei</name> <shared-key>zLUYANG12#$%()aa</shared-key> </portal-server> </portal> </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="18"> <rpc-error> <error-app-tag>-1</error-app-tag> <error-message>Invalid shared-key</error-message> <error-info>Error on node /huawei-aaa-portal:portal/portal-server[name="huawei"]/shared-key</error-info> </rpc-error> </rpc-reply>