Add a read-only "VLAN IDs" count to the VLANRange model #11786

Open
opened 2025-12-29 21:49:52 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Oct 28, 2025).

NetBox version

v4.4.4

Feature type

New functionality

Proposed functionality

Add a public integer field to the ipam.VLANGroup model showing the total number of VLAN IDs contained in the range. This is tracked internally by the private field _total_vlan_ids, which can be renamed to be public.

The count should be included in API representations of a VLAN group, and should be available as a table column in the UI.

Use case

Displaying an absolute count of VLANs would be helpful in scenarios where a range contains a complex set of sub-ranges, e.g. 1-50,100,200,1000-1999.

Database changes

Presumably, the existing field _total_vlan_ids would be renamed to e.g. total_vlan_ids.

External dependencies

N/A

Originally created by @jeremystretch on GitHub (Oct 28, 2025). ### NetBox version v4.4.4 ### Feature type New functionality ### Proposed functionality Add a public integer field to the `ipam.VLANGroup` model showing the total number of VLAN IDs contained in the range. This is tracked internally by the private field `_total_vlan_ids`, which can be renamed to be public. The count should be included in API representations of a VLAN group, and should be available as a table column in the UI. ### Use case Displaying an absolute count of VLANs would be helpful in scenarios where a range contains a complex set of sub-ranges, e.g. 1-50,100,200,1000-1999. ### Database changes Presumably, the existing field `_total_vlan_ids` would be renamed to e.g. `total_vlan_ids`. ### External dependencies N/A
adam added the type: featurenetboxneeds milestonestatus: backlog labels 2025-12-29 21:49:52 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11786