This section provides a sample of configuring an IP address for the built-in Portal server using the merge method.
Operation  | 
XPATH  | 
|---|---|
edit-config:merge  | 
/huawei-nac-portal:portal-access/local-portal-server/local-server-ip  | 
Item  | 
Data  | 
Description  | 
|---|---|---|
local-server-ip  | 
10.10.1.1  | 
Set the IP address of the built-in Portal server to 10.10.1.1.  | 
<?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:local-portal-server>
          <hw-nac-portal:local-server-ip xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge">10.10.1.1</hw-nac-portal:local-server-ip>
        </hw-nac-portal:local-portal-server>
      </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>