OC Network Instances
Packages:
- openconfig-network-instance.yang
- openconfig-network-instance-deviations.yang
Configuring an Open Config Network Instance
Configuring an Open Config Network Instance
Edit-config:
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
<edit-config>
<target>
<running/>
</target>
<config>
<network-instances xmlns="http://openconfig.net/yang/network-instance">
<network-instance>
<name>vrf10</name>
</network-instance>
</network-instances>
</config>
</edit-config>
</rpc>
Response:
<rpc-reply xmlns:if="http://www.cisco.com/nxos:1.0:if_manager" xmlns:nfcli="http://www.cisco.com/nxos:1.0:nfcli" xmlns:nxos="http://www.cisco.com/nxos:1.0" xmlns:vlan_mgr_cli="http://www.cisco.com/nxos:1.0:vlan_mgr_cli" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:196889d8-4f8e-4a5d-99c4-f2dd1a012c41">
<ok/>
</rpc-reply>
Note: This example was added in Release 9.3(3).
Container: network-instances
Type: Config Data
CLI Commands
vrf context vrf10
Deleting a VRF
Deleting a VRF
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="101">
<edit-config>
<target>
<running/>
</target>
<config>
<network-instances xmlns="http://openconfig.net/yang/network-instance">
<network-instance xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" nc:operation="delete">
<name>vrf10</name>
</network-instance>
</network-instances>
</config>
</edit-config>
</rpc>
Response:
<rpc-reply xmlns:if="http://www.cisco.com/nxos:1.0:if_manager" xmlns:nfcli="http://www.cisco.com/nxos:1.0:nfcli" xmlns:nxos="http://www.cisco.com/nxos:1.0" xmlns:vlan_mgr_cli="http://www.cisco.com/nxos:1.0:vlan_mgr_cli" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid: 3fb4c281-70ed-4721-8747-010bbfeec054">
<ok/>
</rpc-reply>
Note: This example was added in Release 9.3(3).
CLI Commands
no vrf context vrf10
Displaying the VRF Running Configuration
Displaying the VRF Running Configuration
Get Request:
<rpc xmlns:if="http://www.cisco.com/nxos:1.0:if_manager" xmlns:nfcli="http://www.cisco.com/nxos:1.0:nfcli" xmlns:nxos="http://www.cisco.com/nxos:1.0" xmlns:vlan_mgr_cli="http://www.cisco.com/nxos:1.0:vlan_mgr_cli" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:8bade9ca-b35f-4fe4-b413-ead4ba22b1e2">
<get>
<filter>
<network-instances xmlns="http://openconfig.net/yang/network-instance">
<network-instance>
<name>vrf10</name>
</network-instance>
</network-instances>
</filter>
</get>
</rpc>
Response:
<rpc-reply xmlns:if="http://www.cisco.com/nxos:1.0:if_manager" xmlns:nfcli="http://www.cisco.com/nxos:1.0:nfcli" xmlns:nxos="http://www.cisco.com/nxos:1.0" xmlns:vlan_mgr_cli="http://www.cisco.com/nxos:1.0:vlan_mgr_cli" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="urn:uuid:8bade9ca-b35f-4fe4-b413-ead4ba22b1e2">
<data>
<network-instances xmlns="http://openconfig.net/yang/network-instance">
<network-instance>
<name>vrf10</name>
<config>
<enabled>true</enabled>
<name>vrf10</name>
<type>L3VRF</type>
</config>
<protocols>
<protocol>
<identifier xmlns:oc-pol-types="http://openconfig.net/yang/policy-types">oc-pol-types:STATIC</identifier>
<name>DEFAULT</name>
</protocol>
</protocols>
<state>
<enabled>true</enabled>
<name>vrf10</name>
<type>L3VRF</type>
</state>
</network-instance>
</network-instances>
</data>
</rpc-reply>
Note: This example was added in Release 9.3(3).
Type: State Data
CLI Output |
---|
|