跳转到内容
Ask AI

VRF-Netconf

此内容尚不支持你的语言。

YANG Pathget/get-configedit-configrpc
/show-vrf-interface——Y
/vrfs/{name}Ymerge, replace, create, delete—

This chapter provides examples of how to configure and manage VRF on AsterNOS devices using NETCONF.

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>

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>

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>

Tree Diagram

module: asternos-vrf
+--rw vrfs
+--rw vrf* [name]
+--rw name string

Table of Properties

NameRequiredType/RangeDescription
vrfsMPath-only node, has no configurable value.
vrfMPath-only node, has no configurable value.
nameONone

Tree Diagram

module: asternos-vrf
rpcs:
+---x show-vrf-interface
+--ro output
+--ro data? <anydata>

Table of Properties

NameRequiredType/RangeDescription
show-vrf-interfaceO
dataOA table that show information of vrf Interface