This section provides a sample of configuring the built-in Portal server function using the merge method.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-nac-portal:portal-access/local-portal-server/local-portal-server-protocol |
Item |
Data |
Description |
---|---|---|
ssl-policy |
ssltest |
Configure the SSL policy named ssltest. |
port |
1111 | Set the port number to 1111. |
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> <edit-config> <target> <running/> </target> <error-option>rollback-on-error</error-option> <config> <portal-access xmlns="urn:huawei:params:xml:ns:yang:huawei-nac-portal" xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0" ns0:operation="merge"> <local-portal-server> <local-server-ip>10.10.1.1</local-server-ip> <local-portal-server-protocol> <ssl-policy>ssltest</ssl-policy> <port>1111</port> </local-portal-server-protocol> </local-portal-server> </portal-access> </config> </edit-config> </rpc>
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0"> <ok/> </rpc-reply>
Sample of failed response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="0"> <rpc-error> <error-type>application</error-type> <error-tag>operation-failed</error-tag> <error-severity>error</error-severity> <error-message>parse configuration error.</error-message> </rpc-error> </rpc-reply>