cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
688
Views
2
Helpful
1
Replies

List VRF names on each managed device?

mehdi.rashidi
Level 1
Level 1

Hi,

api/v1/topology/vrf/vrf-name API call gives you a list of all VRFs discovered by the controller but it doesn't seem to identify on which devices these VRFs are. Has any body found an approach to actually list VRFs on each managed device?

Thanks

1 Reply 1

aradford
Cisco Employee
Cisco Employee

Hi Medhi,

There is a way that i use.  I use the topology API.

GET https://adam-iwan/api/v1/topology/l3/vrf/IWAN-TRANSPORT-1

Will return a list of nodes.

{ "response": { "nodes": [ {

The trick is to filter out the nodes that have ""greyOut": true".

For example - this node should be filtered:

{ "deviceType": "Cisco Catalyst38xx stack-able ethernet switch", "label": "3850-edge", "ip": "10.10.2.130", "softwareVersion": "03.07.04E", "greyOut": true,

That will leave you with the nodes that are part of the vrf you asked for.

Crude, but it works.

Adam

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:


This community is intended for developer topics around Data Center technology and products. If you are looking for a non-developer topic about Data Center, you might find additional information in the Data Center and Cloud community