VLAN groups count on Sites #11811

Closed
opened 2025-12-29 21:50:10 +01:00 by adam · 3 comments
Owner

Originally created by @rjankielsz on GitHub (Nov 4, 2025).

NetBox version

v4.4.4

Feature type

Data model extension

Proposed functionality

It would be useful to have the vlangroup_count for sites as VLANs associated directly to sites is deprecated. Currently, we have access to the following object counts on sites:
"circuit_count": 0,
"device_count": 0,
"prefix_count": 3,
"rack_count": 0,
"virtualmachine_count": 0,
"vlan_count": 0

Image

Use case

Since the recommended approach is assigning VLANs to VLAN groups, which can then be assigned to Sites. This information would be useful in obtaining relevant VLAN information for a site.

Database changes

No response

External dependencies

No response

Originally created by @rjankielsz on GitHub (Nov 4, 2025). ### NetBox version v4.4.4 ### Feature type Data model extension ### Proposed functionality It would be useful to have the vlangroup_count for sites as VLANs associated directly to sites is deprecated. Currently, we have access to the following object counts on sites: "circuit_count": 0, "device_count": 0, "prefix_count": 3, "rack_count": 0, "virtualmachine_count": 0, "vlan_count": 0 <img width="352" height="138" alt="Image" src="https://github.com/user-attachments/assets/8eeb2719-bd34-43ad-9dfe-7660d6c6e193" /> ### Use case Since the recommended approach is assigning VLANs to VLAN groups, which can then be assigned to Sites. This information would be useful in obtaining relevant VLAN information for a site. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: featurenetbox labels 2025-12-29 21:50:10 +01:00
adam closed this issue 2025-12-29 21:50:10 +01:00
Author
Owner

@jeremystretch commented on GitHub (Nov 6, 2025):

Could you please restate your proposed changes to be more clear? Does this impact only sites? Why not include other objects to which VLAN groups can be assigned as well?

@jeremystretch commented on GitHub (Nov 6, 2025): Could you please restate your proposed changes to be more clear? Does this impact only sites? Why not include other objects to which VLAN groups can be assigned as well?
Author
Owner

@rjankielsz commented on GitHub (Nov 12, 2025):

Initially, my thought was for sites since VLANs asssociated to Sites has been announced as deprecated. However, this change could include all objects to which VLAN groups could be assigned.

@rjankielsz commented on GitHub (Nov 12, 2025): Initially, my thought was for sites since VLANs asssociated to Sites has been announced as deprecated. However, this change could include all objects to which VLAN groups could be assigned.
Author
Owner

@arthanson commented on GitHub (Nov 13, 2025):

We don't do this because it is a generic foreign key and we don't provide this on other scoped objects like Rack and Region.

@arthanson commented on GitHub (Nov 13, 2025): We don't do this because it is a generic foreign key and we don't provide this on other scoped objects like Rack and Region.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11811