ND‑Snooping
This chapter provides examples on how to use Netconf to manage ND Snooping configurations on AsterNOS devices.
Get Current ND Snooping Configurations
Section titled “Get Current ND Snooping Configurations”Request example to get all ND Snooping configurations via get-config with subtree filter.
<filter type="subtree"> <top> <nd-snooping/> </top></filter>Response example
<data xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> <top> <nd-snooping xmlns="http://asterfusion.com/ns/yang/asternos-nd-snooping"> <global> <enabled>true</enabled> </global> <interfaces> <interface> <name>Vlan100</name> <enabled>true</enabled> <trusted>true</trusted> </interface> <interface> <name>Vlan200</name> <enabled>true</enabled> <trusted>true</trusted> </interface> </interfaces> </nd-snooping> </top></data>Set ND Snooping Configurations
Section titled “Set ND Snooping Configurations”Request example to set ND Snooping configuration via edit-config.
<config> <top> <nd-snooping> <global> <enabled>true</enabled> </global> <interfaces> <interface> <name>Vlan100</name> <enabled>true</enabled> <trusted>true</trusted> </interface> <interface> <name>Vlan200</name> <enabled>true</enabled> <trusted>true</trusted> </interface> </interfaces> </nd-snooping> </top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:b9171b24-a88c-42da-82f5-d1b8ac58edeb"> <ok/></rpc-reply>Delete ND Snooping Configuration
Section titled “Delete ND Snooping Configuration”Request example to delete ND Snooping configurations of interface via edit-config.
<config> <top> <nd-snooping> <interfaces> <interface operation="delete"> <name>Vlan100</name> </interface> </interfaces> </nd-snooping> </top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:6845257e-fb87-4b08-80c5-2a8b1b1dc264"> <ok/></rpc-reply>