Martin Hauser
573b1b0634
fix(ipam): Correct VLAN ID range bound handling in VLANGroup
...
Fix miscounting of total_vlan_ids when VLANGroup vid_ranges use
non-canonical bounds (e.g. '[]'). Normalize ranges to '[)' on save and
add migration to recompute existing totals. Prevent division-by-zero in
utilization queries for legacy rows with miscounted totals.
Fixes #22228
2026-05-20 14:45:01 +02:00
Martin Hauser
1fc43026d0
Closes #20698 : Expose total_vlan_ids on VLAN groups ( #21574 )
...
Fixes #20698
2026-03-13 15:10:56 -05:00
Jeremy Stretch
678d89d406
Update documentation for v4.2
2024-11-26 12:38:29 -05:00
Jeremy Stretch
28b867bde4
Documentation updates for v4.1
2024-07-31 16:26:21 -04:00
Arthur Hanson
cf1024a12b
9627 use ArrayField on VLANGroup for allowed VLANs ( #16710 )
...
* 9627 initial commit
* 9627 numeric range field
* 9627 numeric range field
* 9627 numeric range field
* 9627 numeric range field
* 9627 add stuff for utilization calc
* 9627 update views
* 9627 fixes
* 9627 available_vlans
* 9627 available_vlans
* 9627 fixes
* 9627 bulk import / edit
* 9627 test fixes
* 9627 test fixes
* 9627 update validation
* 9627 fix tests
* 9627 fix tests
* 9627 fix tests
* 9627 fix tests
* 9627 fix tests
* 9627 fix tests
* 9627 review changes
* 9627 temp vlan_id filter
* Clean up labels
* Remove annotate_vlan_ranges() from VLANGroupQuerySet
* Misc cleanup
* Implement contains_vid filter
* Serialize VID ranges as integer lists in REST API
* Remove default value from vlan_id_ranges
* 9627 fix typo in test
* Require vlan_id_ranges & set default value
* Fix logic for upper range boundaries
* Add field to VLANGroup model documentation
* Rename vlan_id_ranges to vid_ranges
* Fix computation of available VLAN IDs
* Clean up migration
* Add tests for range utility functions
* Clean up add_available_vlans()
* Misc cleanup, add test for VID validation
---------
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
2024-07-16 10:47:18 -04:00
jeremystretch
d43c98d546
Update IPAM models documentation
2022-08-16 15:32:00 -04:00
jeremystretch
544d991e1e
Closes #8168 : Add min/max VID fields to VLANGroup
2021-12-23 11:22:10 -05:00
jeremystretch
266482649f
Update VLAN documentation
2021-04-05 12:55:57 -04:00
Jeremy Stretch
96d2a8b30a
Update IPAM model documentation
2020-07-30 12:55:51 -04:00
Jeremy Stretch
593374764d
Refactor IPAM docs
2020-03-05 11:16:54 -05:00