This section provides a sample of configuring user status detection using the merge method.
Operation |
XPATH |
---|---|
merge |
|
Item |
Data |
Description |
---|---|---|
Automatically detecting the status of users mapping ND snooping dynamic binding entries |
true |
Enable the function of automatically detecting the status of users mapping ND snooping dynamic binding entries, set the number of times that NS packets are sent to detect the user status to 3, and set the interval for sending NS packets to 1200 milliseconds. |
Number of times that NS packets are sent to detect the user status |
3 |
|
Interval for sending NS packets |
1200 |
<rpc message-id="123" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <edit-config> <target> <running/> </target> <config> <hw-savi:savi xmlns:hw-savi="urn:huawei:params:xml:ns:yang:huawei-savi"> <hw-savi:nd-snooping xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0" xc:operation="merge"> <hw-savi:nd-snooping-global-enable> <hw-savi:enable>true</hw-savi:enable> </hw-savi:nd-snooping-global-enable> <hw-savi:user-bind-detect> <hw-savi:enable>true</hw-savi:enable> <hw-savi:retransmit>3</hw-savi:retransmit> <hw-savi:interval>1200</hw-savi:interval> </hw-savi:user-bind-detect> </hw-savi:nd-snooping> </hw-savi:savi> </config> </edit-config> </rpc>
Sample of successful response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123"> <ok/> </rpc-reply>
Sample of failed response
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="123"> <rpc-error> <error-app-tag>-1</error-app-tag> <error-message> Please enable DHCP snooping in the global view first.</error-message> <error-info>Error on node /huawei-savi:savi/nd-snooping/user-bind-detect</error-info> </rpc-error> </rpc-reply>