Skip to content

Conversation

pheus
Copy link
Contributor

@pheus pheus commented Oct 17, 2025

Fixes: #20610

Correct an off‑by‑one in VLANGroup._total_vlan_ids by computing lengths with half‑open [lo, hi) semantics during save(). Removes the +1, adds a test and includes a data migration to backfill existing _total_vlan_ids.

No schema changes.

Adjust VLAN ID range calculation to use half‑open intervals for
consistency. Add a test to validate `_total_vlan_ids`.

Fixes netbox-community#20610
@jeremystretch jeremystretch marked this pull request as ready for review October 17, 2025 12:50
@jeremystretch jeremystretch requested review from a team and bctiemann and removed request for a team October 17, 2025 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VLAN Group utilization is not being calculated correctly

1 participant