This section provides a sample of configuring the source IP address used by the device to communicate with the Portal server in the system view using the merge method.
Operation |
XPATH |
|---|---|
edit-config:merge |
/huawei-aaa-portal:portal/global-source-ip/ip/ip-address |
Item |
Data |
Description |
|---|---|---|
ip-address |
192.168.1.100 |
Set the source IP address used by the device to communicate with the Portal server in the system view to 192.168.1.100. |
<?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-aaa-portal:portal xmlns:hw-aaa-portal="urn:huawei:params:xml:ns:yang:huawei-aaa-portal">
<hw-aaa-portal:ip-address>192.168.1.100</hw-aaa-portal:ip-address>
</hw-aaa-portal:portal>
</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
<?xml version='1.0' encoding='UTF-8'?>
<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-path>/huawei-aaa-portal:portal</error-path>
<error-message>parse rpc config error.(Unknown element "ip-address".).</error-message>
</rpc-error>
</rpc-reply>