Add filter to container prefixes to show only avaliable child Prefixes #5571

Closed
opened 2025-12-29 19:29:38 +01:00 by adam · 1 comment
Owner

Originally created by @WillIrvine on GitHub (Oct 28, 2021).

Originally assigned to: @WillIrvine on GitHub.

NetBox version

v3.0.8

Feature type

Change to existing functionality

Proposed functionality

When looking at the child prefixes of a container prefix there are two views

  1. "Show Available" Prefixes
  2. "Hide Available" Prefixes

image

This FR proposes a third option that filters only by available prefixes in the container. "Show Only Available"

This filter removes all currently allocated prefixes from the list, and only displays currently unassigned "available" prefixes within the container prefix

I should be able to put a PR in for this if accepted.

Use case

We currently use the "Show Available Prefixes" filter to assign new child prefixes from the container.
This works well when the container is mostly empty, but when you have a /20 container full of /31's that's 99% full you need to run through pages and pages of allocated prefixes to find the ones that are unallocated.

Database changes

None - this functionality is currently available via the API

External dependencies

None

Originally created by @WillIrvine on GitHub (Oct 28, 2021). Originally assigned to: @WillIrvine on GitHub. ### NetBox version v3.0.8 ### Feature type Change to existing functionality ### Proposed functionality When looking at the child prefixes of a container prefix there are two views 1. "Show Available" Prefixes 2. "Hide Available" Prefixes ![image](https://user-images.githubusercontent.com/32685892/139167124-c750de64-c24c-4e96-9e92-ee4dd304bfe9.png) This FR proposes a third option that filters only by available prefixes in the container. "Show Only Available" This filter removes all currently allocated prefixes from the list, and only displays currently unassigned "available" prefixes within the container prefix I should be able to put a PR in for this if accepted. ### Use case We currently use the "Show Available Prefixes" filter to assign new child prefixes from the container. This works well when the container is mostly empty, but when you have a /20 container full of /31's that's 99% full you need to run through pages and pages of allocated prefixes to find the ones that are unallocated. ### Database changes None - this functionality is currently available via the API ### External dependencies None
adam added the status: acceptedtype: feature labels 2025-12-29 19:29:38 +01:00
adam closed this issue 2025-12-29 19:29:38 +01:00
Author
Owner

@WillIrvine commented on GitHub (Nov 13, 2021):

@jeremystretch can i be assigned this?

@WillIrvine commented on GitHub (Nov 13, 2021): @jeremystretch can i be assigned this?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5571