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