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.
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.
Comments
0 comments
Please sign in to leave a comment.