Closed sebastiaanvduijn closed 2 years ago
Expected behavior is to see the amount of vlans in use per site by doing a reverse lookup through prefixes assinged
This would be extremely inefficient, which is one of the reasons the direct relationship between the site and VLAN objects exists. You need to assign VLANs to sites just as you do prefixes.
As example: We have Vlan 60 which exist in 60 sites, if we need to assign a vlan per site this would mean 60 times vlan 60.... We have created vlan 60 once and the allocated prefixes are assigned to a site.
There for my ask for the above.
if we need to assign a vlan per site this would mean 60 times vlan 60....
Correct. Do this. Because you have 60 VLANs, not one.
NetBox version
3.2.7
Python version
3.8
Steps to Reproduce
Once a new vlan is created which is not directly attached to a site but to a site group and prefixes assigned to this vlan and assigned to a site, the vlan is not assigned to the site.
You get the same result while using the API
Expected Behavior
Expected behavior is to see the amount of vlans in use per site by doing a reverse lookup through prefixes assinged, this helps automation tools understanding the amount of vlans present and if not present create them.
Observed Behavior
vlans are not visible in the site overview or API