Marking prefixes as fully allocated #3659

Closed
opened 2025-12-29 18:30:25 +01:00 by adam · 3 comments
Owner

Originally created by @ChrisDeh on GitHub (May 8, 2020).

Originally assigned to: @jeremystretch on GitHub.

Environment

  • Python version: 3.8.2
  • NetBox version: 2.8.3

Proposed Functionality

Adding an option to a prefix, for marking every IP within this prefix as "in use" - like there is every IP within the prefix created. Especially for IPv6 prefixes were it is impossible to create every IP within a prefix this could be a solution to document the prefix is fully allocated and can't be used. In the prefix-list view, the Utilization Percentage would be shown as 100%, if the option is used.

Use Case

This can be used for example to document IPv6 Prefixes used for DHCP Prefix Delegation to Customers. When speaking about IPv4 Prefixes it is possible to create every IP-Address within a Prefix and define it as "DHCP" - this is not possible with IPv6 cause would decrease netbox Performance massively.

Originally created by @ChrisDeh on GitHub (May 8, 2020). Originally assigned to: @jeremystretch on GitHub. <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for proposing specific new features or enhancements. If you have a general idea or question, please post to our mailing list instead of opening an issue: https://groups.google.com/forum/#!forum/netbox-discuss NOTE: Due to an excessive backlog of feature requests, we are not currently accepting any proposals which significantly extend NetBox's feature scope. Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.8.2 * NetBox version: 2.8.3 <!-- Describe in detail the new functionality you are proposing. Include any specific changes to work flows, data models, or the user interface. --> ### Proposed Functionality Adding an option to a prefix, for marking every IP within this prefix as "in use" - like there is every IP within the prefix created. Especially for IPv6 prefixes were it is impossible to create every IP within a prefix this could be a solution to document the prefix is fully allocated and can't be used. In the prefix-list view, the Utilization Percentage would be shown as 100%, if the option is used. <!-- Convey an example use case for your proposed feature. Write from the perspective of a NetBox user who would benefit from the proposed functionality and describe how. ---> ### Use Case This can be used for example to document IPv6 Prefixes used for DHCP Prefix Delegation to Customers. When speaking about IPv4 Prefixes it is possible to create every IP-Address within a Prefix and define it as "DHCP" - this is not possible with IPv6 cause would decrease netbox Performance massively.
adam added the status: acceptedtype: feature labels 2025-12-29 18:30:25 +01:00
adam closed this issue 2025-12-29 18:30:25 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 12, 2020):

I do want to note that prefix utilization can be calculated in two ways: For container prefixes, it's calculated based on the number and size of child prefixes. For others, it's calculated based on the number of child IP addresses. If implemented, this flag would imply 100% utilization for either case as appropriate.

@jeremystretch commented on GitHub (May 12, 2020): I do want to note that prefix utilization can be calculated in two ways: For container prefixes, it's calculated based on the number and size of child prefixes. For others, it's calculated based on the number of child IP addresses. If implemented, this flag would imply 100% utilization for either case as appropriate.
Author
Owner

@v0tti commented on GitHub (Sep 24, 2020):

I would like to start working on this issue as we need this feature ourself.

As I am not very experienced with Django projects, feedback is very welcome. My current status corresponds to my fork. Should I create a WIP pull request?

An important consideration is with available IP addresses and available prefixes. Should they be returned as available even if this flag is set?

@v0tti commented on GitHub (Sep 24, 2020): I would like to start working on this issue as we need this feature ourself. As I am not very experienced with Django projects, feedback is very welcome. My current status corresponds to my [fork](https://github.com/v0tti/netbox). Should I create a WIP pull request? An important consideration is with available IP addresses and available prefixes. Should they be returned as available even if this flag is set?
Author
Owner

@jeremystretch commented on GitHub (Sep 24, 2020):

@v0tti No work will be accepted on this issue yet as it is still awaiting milestone assignment.

@jeremystretch commented on GitHub (Sep 24, 2020): @v0tti No work will be accepted on this issue yet as it is still awaiting milestone assignment.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3659