Include 'mark populated' ip ranges in utilization calculation of prefix #11188

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

Originally created by @GoepiGB on GitHub (May 16, 2025).

NetBox version

v4.3.1

Feature type

Change to existing functionality

Proposed functionality

If a prefix contains an IP range with the new feature 'mark populated' activated, the IP addresses of said range should be added to the prefix's utilization.

Here are 2 prefixes, the first has an IP range marked as populated, the second has none. The usage looks the same for both.
Image

Image

Use case

To see at first glance how high the usage of a given prefix is, even with DHCP active.

Database changes

None I'm aware of

External dependencies

No response

Originally created by @GoepiGB on GitHub (May 16, 2025). ### NetBox version v4.3.1 ### Feature type Change to existing functionality ### Proposed functionality If a prefix contains an IP range with the new feature 'mark populated' activated, the IP addresses of said range should be added to the prefix's utilization. Here are 2 prefixes, the first has an IP range marked as populated, the second has none. The usage looks the same for both. ![Image](https://github.com/user-attachments/assets/70e61bce-5c8e-4105-b5ae-09b9628cabd1) ![Image](https://github.com/user-attachments/assets/41a49a5b-1498-49f3-9339-045b8554c78f) ### Use case To see at first glance how high the usage of a given prefix is, even with DHCP active. ### Database changes None I'm aware of ### External dependencies _No response_
adam added the type: feature label 2025-12-29 21:41:42 +01:00
adam closed this issue 2025-12-29 21:41:42 +01:00
Author
Owner

@pheus commented on GitHub (May 16, 2025):

Hi there! Thanks for the suggestion.

This behavior was actually a design decision when the “mark populated” feature was introduced (see #9763).

If you’d like the populated IPs to contribute to the prefix's utilization, you can enable “mark utilized” alongside “mark populated”. That should give you the result you’re looking for!

@pheus commented on GitHub (May 16, 2025): Hi there! Thanks for the suggestion. This behavior was actually a design decision when the *“mark populated”* feature was introduced ([see #9763](https://github.com/netbox-community/netbox/issues/9763)). If you’d like the populated IPs to contribute to the prefix's utilization, you can enable *“mark utilized”* alongside *“mark populated”*. That should give you the result you’re looking for!
Author
Owner

@jeremystretch commented on GitHub (May 22, 2025):

Thanks @pheus, I think you hit the nail on the head here.

@jeremystretch commented on GitHub (May 22, 2025): Thanks @pheus, I think you hit the nail on the head here.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11188