VRF
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>