Skip to content

Fixes: #18037 - Bound VLANGroup VLAN ID max by VLAN_VID_MAX #18041

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

Merged
merged 4 commits into from
Nov 20, 2024

Conversation

DanSheps
Copy link
Member

Fixes: #18037 - Restrict VLANGroup VID max to 4094

  • Bound VLANGroup VLAN ID max by VLAN_VID_MAX

@DanSheps DanSheps requested a review from arthanson November 18, 2024 23:17
@DanSheps
Copy link
Member Author

DanSheps commented Nov 18, 2024

To be clear, this does not fix the list issue, I am not sure where that code is going to come into play (Checked the annotation on the custom queryset and the table and nothing there looks to cause any issues), however this does prevent VID's > 4094 from being created.

It is likely in ranges_to_strings() from vid_ranges_list but changing that may have unintended impacts.

@jeremystretch jeremystretch merged commit 9ccbb08 into develop Nov 20, 2024
4 of 6 checks passed
@jeremystretch jeremystretch deleted the 18037-fix-invalid-vlan-range branch November 20, 2024 21:03
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 21, 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.

vlan group with large ID makes UI crash
2 participants