How to get a list and count all of the VLANs assigned in your blueprint under Apstra.
- In Apstra, navigate to
platform > developer > graph-explorer.
- Select the desired Blueprint in the dropdown.
- Enter the following graph query and then click the Execute button.
node('vn_instance', name='vn_instance')
- Copy the returned data and paste it into the vlans.json file.
In addition, you can query the graph to get a list of all of the Routing Zones configured, along with the VLAN IDs assigned to each RZ.
- Enter the following graph query and then click the Execute button.
node('security_zone', name='vn_instance')
- Copy the returned data and paste it into the rz.json file.
- Execute the script
python3 main.py