List VRF names on each managed device?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2017 04:21 AM - edited 03-01-2019 04:36 AM
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
- Labels:
-
APIC

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2017 11:15 PM
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
