Skip to content

Fixes #18879 - Add prefix filtering by assigned VLAN group #19161

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

Conversation

pheus
Copy link
Contributor

@pheus pheus commented Apr 13, 2025

Fixes #18879 - Add prefix filtering by assigned VLAN Group

Overview

This PR enhances NetBox by enabling filtering of prefixes by the assigned VLAN Group. Users can now filter using both quick search (by VLAN Group slug) and FilterForm (by ID).

Changes Introduced

  • IPAM FilterSet: Added VLAN Group filters to support filtering by both ID and slug.
  • IPAM FilterForm: Introduced a vlan_group_id filter for direct filtering by VLAN Group.
  • Testing: Added tests to validate VLAN Group filtering.

Thank you for reviewing this PR!

pheus added 3 commits April 13, 2025 13:13
Introduces filters for VLAN groups using both ID and slug fields.
Introduces a `vlan_group_id` filter to IPAM forms for filtering based on
VLAN groups.
Introduces tests for VLAN group filtering in FilterSets. This ensures
correct validation and behavior when filtering by VLAN group.
@jnovinger jnovinger requested review from a team and jeremystretch and removed request for a team April 14, 2025 12:59
@pheus pheus force-pushed the feature/18879-add-prefix-filtering-by-vlan-group branch from f973bc8 to bbb52b4 Compare April 14, 2025 19:50
@pheus pheus requested a review from jeremystretch April 14, 2025 20:06
@pheus pheus closed this Apr 14, 2025
@pheus pheus deleted the feature/18879-add-prefix-filtering-by-vlan-group branch April 14, 2025 20:14
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.

Add prefix filtering by assigned VLAN group
2 participants