This section provides a sample of configuring information related to the DNS, WINS, and DHCP servers in the service scheme using the merge method.
Operation |
XPATH |
---|---|
edit-config:merge |
|
Item |
Data |
Description |
---|---|---|
IP addresses of the master and slave DNS servers |
|
Set the IP addresses of the master and slave DNS servers to 10.1.1.1 and 10.1.1.2 respectively in service scheme s1. |
IP addresses of the master and slave WINS servers |
|
Set the IP addresses of the master and slave WINS servers to 10.2.1.1 and 10.2.1.2 respectively in service scheme s1. |
Name of the DHCP server group and name of the IP address pool |
|
Set the name of the DHCP server group to group1 and name of the IP address pool that can be used to pool1 in service scheme s1. |
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <hw-aaa:aaa xmlns:hw-aaa="urn:huawei:params:xml:ns:yang:huawei-aaa"> <hw-aaa:service-scheme xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge"> <hw-aaa:name>s1</hw-aaa:name> <hw-aaa:vsys>sys</hw-aaa:vsys> <hw-aaa:dns> <hw-aaa:primary-ip-address>10.1.1.1</hw-aaa:primary-ip-address> <hw-aaa:secondary-ip-address>10.1.1.2</hw-aaa:secondary-ip-address> </hw-aaa:dns> <hw-aaa:wins> <hw-aaa:primary-ip-address>10.2.1.1</hw-aaa:primary-ip-address> <hw-aaa:secondary-ip-address>10.2.1.2</hw-aaa:secondary-ip-address> </hw-aaa:wins> <hw-aaa:ip-pool>pool1</hw-aaa:ip-pool> <hw-aaa:dhcp-group>group1</hw-aaa:dhcp-group> </hw-aaa:service-scheme> </hw-aaa:aaa> </config> </edit-config> </rpc>
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1"> <ok/> </rpc-reply>
Sample of failed response