RESTCONF API for VRF CLI Commands

This section provides the Representational State Transfer Configuration Protocol (RESTCONF) API sections for the VRF CLI commands.

POST

GET

To access the top-level interfaces resource within the openconfig-network-instance YANG model, use the following URLs:

https://$ip:8080/rest/restconf/data/openconfig-network-instance:network-instances/network-instance=%s 
- >VRF name/VFR ID
https://$ip:8080/rest/restconf/data/openconfig-network-instance:network-instances/network-instance=%s/config
- >VRF name/VFR ID
https://$ip:8080/rest/restconf/data/openconfig-network-instance:network-instances/network-instance=%s/state
- >VRF name/VFR ID
https://$ip:8080/rest/restconf/data/openconfig-network-instance:network-instances/network-instance
= VRF name or name
https://$ip:8080/rest/restconf/data/openconfig-network-instance:network-instances/network-instance
=<VRF ID or name>/vlans
https://$ip:8080/rest/restconf/data/openconfig-network-instance:network-instances/network-instance
=<VRF ID or name>/vlans/vlan=<VLAN ID>
https://$ip:8080/rest/restconf/data/openconfig-network-instance:network-instances/network-instance
=<VRF ID or name>/vlans/vlan=<VLAN ID>/state
https://$ip:8080/rest/restconf/data/openconfig-network-instance:network-instances/network-instance
=<VRF ID or name>/vlans/vlan=<VLAN ID>/config
https://$ip:8080/rest/restconf/data/openconfig-network-instance:network-instances/network-instance
=<VRF ID or name>/protocols/protocol=<protocol identifier>
https://$ip:8080/rest/restconf/data/openconfig-network-instance:network-instances/network-instance
=<VRF ID or name>/protocols/protocol=<protocol identifier>/state
https://$ip:8080/rest/restconf/data/openconfig-network-instance:network-instances/network-instance
=<VRF ID or name>/protocols/protocol=<protocol identifier>/config
https://$ip:8080/rest/restconf/data/openconfig-network-instance:network-instances/network-instance
=<VRF ID or name>/dhcp-relay
Note

Note

DHCP relay forward path identifier: agent + server addresses, is passed through URL as: server address>%26<agent address>. Where %26 is encoded value for &.

For example:
https://$ip:8080/rest/restconf/data/openconfig-network-instance:network-instances/network-instance=<VRF ID or name>/dhcp-relay/forward-path=<agent address>%26<server address>
https://$ip:8080/rest/restconf/data/openconfig-network-instance:network-instances/network-instance
=<VRF ID or name>/dhcp-relay/forward-path=<server address>%26<agent address>
https://$ip:8080/rest/restconf/data/openconfig-network-instance:network-instances/network-instance
=<VRF ID or name>/dhcp-relay/forward-path=<server address>%26<agent address>/config
https://$ip:8080/rest/restconf/data/openconfig-network-instance:network-instances/network-instance
=<VRF ID or name>/dhcp-relay/forward-path=<server address>%26<agent address>/state

Use this API operation to do the following:

Sample server response:

Based on Yang Model

DELETE