This section provides a sample of configuring a user-defined destination port number for HTTP packets that trigger Portal redirection using the merge method.
Operation |
XPATH |
---|---|
edit-config:merge |
/huawei-nac-portal:portal-access/redirect-http-port |
Item |
Data |
Description |
---|---|---|
redirect-http-port |
1024 |
Set the user-defined destination port number for HTTP packets that trigger Portal redirection to 1024. |
<rpc message-id="0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <hw-nac-portal:portal-access xmlns:hw-nac-portal="urn:huawei:params:xml:ns:yang:huawei-nac-portal"> <hw-nac-portal:redirect-http-port xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge">1024</hw-nac-portal:redirect-http-port> </hw-nac-portal: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>