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

List VRF names on each managed device?

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

Everyone's tags (2)
1 REPLY 1
Highlighted
Cisco Employee

Re: List VRF names on each managed device?

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

This widget could not be displayed.