Nd-Snooping-Netconf
此内容尚不支持你的语言。
Nd Snooping
Section titled “Nd Snooping”Resources Summary
Section titled “Resources Summary”| YANG Path | get/get-config | edit-config | rpc |
|---|---|---|---|
| /nd-snooping | Y | merge, replace, create, delete | — |
| /nd-snooping/global | Y | merge, replace, create, delete | — |
| /nd-snooping/interfaces/{name} | Y | merge, replace, create, delete | — |
Examples
Section titled “Examples”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>Properties Descriptions
Section titled “Properties Descriptions”nd snooping configuration
Section titled “nd snooping configuration”Tree Diagram
module: asternos-nd-snooping +--rw nd-snooping +--rw global | +--rw enabled? boolean +--rw interfaces +--rw interface* [name] +--rw name cmn:vlan-name +--rw enabled? boolean +--rw trusted? booleanTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| nd-snooping | M | Path-only node, has no configurable value. nd snooping configuration. | |
| global | M | Path-only node, has no configurable value. nd snooping global configuration. | |
| enabled | O | ”true" "false” | enable nd snooping. |
| interfaces | M | Path-only node, has no configurable value. nd snooping interface configuration. | |
| interface | M | Path-only node, has no configurable value. nd snooping interface. | |
| name | O | cmn:vlan-name | interface name. |
| enabled | O | ”true" "false” | enable nd snooping. |
| trusted | O | ”true" "false” | trusted interface nd snooping. |
nd snooping global configuration
Section titled “nd snooping global configuration”Tree Diagram
module: asternos-nd-snooping +--rw nd-snooping +--rw global +--rw enabled? booleanTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| global | M | Path-only node, has no configurable value. nd snooping global configuration. | |
| enabled | O | ”true" "false” | enable nd snooping. |
nd snooping interface configuration
Section titled “nd snooping interface configuration”Tree Diagram
module: asternos-nd-snooping +--rw nd-snooping +--rw interfaces +--rw interface* [name] +--rw name cmn:vlan-name +--rw enabled? boolean +--rw trusted? booleanTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| interfaces | M | Path-only node, has no configurable value. nd snooping interface configuration. | |
| interface | M | Path-only node, has no configurable value. nd snooping interface. | |
| name | O | cmn:vlan-name | interface name. |
| enabled | O | ”true" "false” | enable nd snooping. |
| trusted | O | ”true" "false” | trusted interface nd snooping. |