VRF-Netconf
此内容尚不支持你的语言。
Resources Summary
Section titled “Resources Summary”| YANG Path | get/get-config | edit-config | rpc |
|---|---|---|---|
| /show-vrf-interface | — | — | Y |
| /vrfs/{name} | Y | merge, replace, create, delete | — |
Examples
Section titled “Examples”This chapter provides examples of how to configure and manage VRF on AsterNOS devices using NETCONF.
Create VRF
Section titled “Create VRF”Request example to create new VRF on device via edit-config
<config><top> <vrfs> <vrf operation="create"> <name>VrfTest</name> </vrf> </vrfs></top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:d9293a56-0284-4c3c-ad6d-ae6822a8160f"> <ok/></rpc-reply>Get All Existing VRFs
Section titled “Get All Existing VRFs”Request example to get all vrfs on device via get-config
<filter type="subtree"> <top> <vrfs/> </top></filter>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:a87dd3cc-f2b8-4cce-bccc-d8e0a098593d"> <data> <top> <vrfs xmlns="http://asterfusion.com/ns/yang/asternos-vrf"> <vrf> <name>VrfTest</name> </vrf> </vrfs> </top> </data></rpc-reply>Delete VRF
Section titled “Delete VRF”Request example to delete specific existing VRF on device via edit-config
<config><top> <vrfs> <vrf operation="delete"> <name>VrfTest</name> </vrf> </vrfs></top></config>Response example
<rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:c2485f03-ca57-4c6e-bb4d-70bb4a63cfc2"> <ok/></rpc-reply>Properties Descriptions
Section titled “Properties Descriptions”Tree Diagram
module: asternos-vrf +--rw vrfs +--rw vrf* [name] +--rw name stringTable of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| vrfs | M | Path-only node, has no configurable value. | |
| vrf | M | Path-only node, has no configurable value. | |
| name | O | None |
Show Vrf Interface
Section titled “Show Vrf Interface”Tree Diagram
module: asternos-vrf
rpcs: +---x show-vrf-interface +--ro output +--ro data? <anydata>Table of Properties
| Name | Required | Type/Range | Description |
|---|---|---|---|
| show-vrf-interface | O | ||
| data | O | A table that show information of vrf Interface |