Skip to content

Add prefix filtering by assigned VLAN group #18879

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

Closed
artiomello opened this issue Mar 12, 2025 · 2 comments · Fixed by #19182
Closed

Add prefix filtering by assigned VLAN group #18879

artiomello opened this issue Mar 12, 2025 · 2 comments · Fixed by #19182
Assignees
Labels
complexity: low Requires minimal effort to implement status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Milestone

Comments

@artiomello
Copy link

NetBox version

v4.2.4

Feature type

New functionality

Proposed functionality

Please make it possible to use both Quick search and Filter to be able to properly filter out prefixes by specific VLAN Groups they are assigned to.

Currently it's possible to only sort the table (asc/desc) by that property, but filtering isn't avaible.

Use case

Having many networks, prefixes and vlans across multiple sites, it would be very helpful to be able to use a proper filter and quick search to be able to filter for prefixes assigned to specific vlan groups.

Right now the only way to do so is to have the prefixes page show 1000 entries and use the browser's search tool to highlight specific vlan groups.

Database changes

No response

External dependencies

No response

@artiomello artiomello added status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application labels Mar 12, 2025
@bctiemann bctiemann added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation complexity: low Requires minimal effort to implement and removed status: needs triage This issue is awaiting triage by a maintainer labels Mar 20, 2025
@pheus
Copy link
Contributor

pheus commented Apr 13, 2025

Hi @bctiemann,

I'd like to contribute to this feature! I've already implemented it and would be happy to open a PR.
Would you mind assigning the issue to me?

Thanks!

@bctiemann bctiemann added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Apr 13, 2025
@jeremystretch jeremystretch added this to the v4.2.8 milestone Apr 14, 2025
@jeremystretch
Copy link
Member

Please make it possible to use both Quick search and Filter to be able to properly filter out prefixes by specific VLAN Groups they are assigned to.

Quick search is restricted to filtering on local model fields only.

jeremystretch pushed a commit that referenced this issue Apr 15, 2025
* feat(ipam): Add VLAN group filters to IPAM FilterSet

Introduces filters for VLAN groups using both ID and slug fields.

* feat(ipam): Add VLAN group filter in IPAM FilterForm

Introduces a `vlan_group_id` filter to IPAM forms for filtering based on
VLAN groups.

* feat(ipam): Add VLAN group filtering to tests

Introduces tests for VLAN group filtering in FilterSets. This ensures
correct validation and behavior when filtering by VLAN group.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity: low Requires minimal effort to implement status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Projects
None yet
4 participants