Skip to content

NDP

This chapter provides examples on how to use Netconf to manage IPv6 Neighbor Discovery Protocol (NDP) on AsterNOS devices.

hint{type=“warning”} NOTE: Nd Proxy is only supported on VLAN interfaces.

Request example to enable nd proxy for vlan in interface via edit-config.

<config><top>
<interfaces>
<interface>
<name>Vlan100</name>
<nd-dynamic-learning operation="merge">
<nd-mode>anycast_gw</nd-mode>
</nd-dynamic-learning>
</interface>
</interfaces>
</top></config>

Response example

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:dedc5a0a-14f2-438c-b078-85fc3aefd6b1">
<ok/>
</rpc-reply>

Request example to disable nd proxy for vlan in interface via edit-config.

<config><top>
<interfaces>
<interface>
<name>Vlan100</name>
<nd-dynamic-learning operation="merge">
<nd-mode>disable</nd-mode>
</nd-dynamic-learning>
</interface>
</interfaces>
</top></config>

Response example

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:dedc5a0a-14f2-438c-b078-85fc3aefd6b1">
<ok/>
</rpc-reply>

Request example to get nd proxy for vlan in interface via get-config.

<filter type="subtree">
<top>
<interfaces>
<interface>
<name>Vlan100</name>
<nd-dynamic-learning/>
</interface>
</interfaces>
</top>
</filter>

Response example

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:f73a6362-c017-416b-84eb-91a22f9bac05">
<data>
<top>
<interfaces xmlns="http://asterfusion.com/ns/yang/asternos-interfaces">
<interface>
<name>Vlan100</name>
<nd-dynamic-learning xmlns="http://asterfusion.com/ns/yang/asternos-ndp">
<nd-mode>disable</nd-mode>
</nd-dynamic-learning>
</interface>
</interfaces>
</top>
</data>
</rpc-reply>

Request example to show nd proxy for all vlans interfaces via rpc show-interface-nd-proxy.

<show-interface-nd-proxy/>

Response example

<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:d57a06d8-eec6-41cb-87a6-a905ae6d1790">
<data xmlns="http://asterfusion.com/ns/yang/asternos-ndp">
<interface>
<name>Vlan100</name>
<mode>disable</mode>
</interface>
</data>
</rpc-reply>