Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

9627 use ArrayField on VLANGroup for allowed VLANs #16710

Merged
merged 43 commits into from
Jul 16, 2024

Conversation

arthanson
Copy link
Collaborator

@arthanson arthanson commented Jun 24, 2024

Fixes: #9627

Note: The min_vid and max_vid filters were removed, It might be possible to do some PostGres fu to filter inside the arrays for min / max. Could also make internal fields storing the array min and max and filter against that. Tried storing the expanded array as individual items, but that runs into the PostGres row size limit so is not tenable.

Currently using vlan_id_ranges for the name, wondering if allowed_vlans or allowed_vlan_ids would be a better name?

@arthanson arthanson changed the title DRAFT: 9627 vlan group3 9627 use ArrayField on VLANGroup for allowed VLANs Jun 25, 2024
@jeremystretch jeremystretch added this to the v4.1 milestone Jun 25, 2024
@arthanson arthanson marked this pull request as ready for review June 25, 2024 14:39
netbox/ipam/models/vlans.py Outdated Show resolved Hide resolved
netbox/ipam/models/vlans.py Outdated Show resolved Hide resolved
netbox/ipam/forms/filtersets.py Outdated Show resolved Hide resolved
netbox/templates/ipam/vlangroup.html Outdated Show resolved Hide resolved
netbox/ipam/api/serializers_/vlans.py Outdated Show resolved Hide resolved
@arthanson
Copy link
Collaborator Author

@jeremystretch looks good to me

@jeremystretch jeremystretch merged commit cf1024a into feature Jul 16, 2024
6 checks passed
@jeremystretch jeremystretch deleted the 9627-vlan-group3 branch July 16, 2024 14:47
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants