"Max length" in prefix view cannot be deselected #4831

Closed
opened 2025-12-29 19:21:02 +01:00 by adam · 2 comments
Owner

Originally created by @candlerb on GitHub (Apr 27, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v2.11.1

Feature type

Change to existing functionality

Proposed functionality

The "max length" drop-down in Prefix listing view has a couple of strange behaviours:

  • It's not in the "Search" area where I'd expect it, but next to the "Configure" / "Add" / "Import" / "Export"
  • Once you've selected it, you can't deselect it (without navigating away / manually changing URL)

I suggest moving it to the Search area, and having "----" as one of the options. (EDIT: I suggest moving it next to the "Address Family", since selecting a max length of say 48 isn't really useful without also selecting IPv6. There is already a "Mask Length" selector there, but that matches exact length, not up-to length)

Use case

Easier control of filtering prefixes

Database changes

None

External dependencies

None

Originally created by @candlerb on GitHub (Apr 27, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v2.11.1 ### Feature type Change to existing functionality ### Proposed functionality The "max length" drop-down in Prefix listing view has a couple of strange behaviours: * It's not in the "Search" area where I'd expect it, but next to the "Configure" / "Add" / "Import" / "Export" * Once you've selected it, you can't deselect it (without navigating away / manually changing URL) I suggest moving it to the Search area, and having "----" as one of the options. (EDIT: I suggest moving it next to the "Address Family", since selecting a max length of say 48 isn't really useful without also selecting IPv6. There is already a "Mask Length" selector there, but that matches exact length, not up-to length) ### Use case Easier control of filtering prefixes ### Database changes None ### External dependencies None
adam added the status: acceptedtype: feature labels 2025-12-29 19:21:02 +01:00
adam closed this issue 2025-12-29 19:21:02 +01:00
Author
Owner

@candlerb commented on GitHub (Apr 27, 2021):

Current view at /ipam/prefixes/?mask_length__lte=16&page=1
image

@candlerb commented on GitHub (Apr 27, 2021): Current view at `/ipam/prefixes/?mask_length__lte=16&page=1` ![image](https://user-images.githubusercontent.com/44789/116208124-7ce01700-a738-11eb-9efc-8b62f01f9722.png)
Author
Owner

@jeremystretch commented on GitHub (Apr 27, 2021):

I'll add an option to clear any assigned selection, however we'll need to keep the button where it is for now pending the UI overhaul for v2.12.

@jeremystretch commented on GitHub (Apr 27, 2021): I'll add an option to clear any assigned selection, however we'll need to keep the button where it is for now pending the UI overhaul for v2.12.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4831