This section provides a sample of configuring the Portal interconnection function of the HTTP or HTTPS protocol using the merge method.
Operation |
XPATH |
|---|---|
edit-config:merge |
/huawei-nac-portal:portal-access/web-authen-server-protocol |
Item |
Data |
Description |
|---|---|---|
ssl-policy |
sp1 |
Configure the SSL policy named sp1. |
port |
1111 |
Set the port number to 1111. |
<?xml version='1.0' encoding='UTF-8'?>
<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:web-authen-server-protocol>
<hw-nac-portal:ssl-policy>sp1</hw-nac-portal:ssl-policy>
<hw-nac-portal:port>1111</hw-nac-portal:port>
</hw-nac-portal:web-authen-server-protocol>
</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>