Closes #20698: Expose total_vlan_ids on VLAN groups #233

Closed
opened 2026-04-05 16:23:20 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pheus on 3/4/2026

Fixes: #20698

This PR exposes the total number of VLAN IDs contained in a VLANGroup.

It renames the internal _total_vlan_ids field to total_vlan_ids (preserving existing data via a migration), and makes the value available as a read-only integer in the VLANGroup API. The VLANGroup table view has also been updated to include a Total VLAN IDs column, with relevant tests adjusted accordingly.

*Originally created by @pheus on 3/4/2026* ### Fixes: #20698 This PR exposes the total number of VLAN IDs contained in a `VLANGroup`. It renames the internal `_total_vlan_ids` field to `total_vlan_ids` (preserving existing data via a migration), and makes the value available as a read-only integer in the VLANGroup API. The VLANGroup table view has also been updated to include a **Total VLAN IDs** column, with relevant tests adjusted accordingly.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#233