< Home

Configuring the Built-in Portal Server Function

This section provides a sample of configuring the built-in Portal server function using the merge method.

Table 1 Configuring the built-in Portal server function

Operation

XPATH

edit-config:merge

/huawei-nac-portal:portal-access/local-portal-server/local-portal-server-protocol

Data Requirements

Table 2 Configuring the built-in Portal server function

Item

Data

Description

ssl-policy

ssltest

Configure the SSL policy named ssltest.

port

1111

Set the port number to 1111.

Request Example

<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>

Response Example

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>
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >