Clarify utilization percentages for prefixes #1409

Closed
opened 2025-12-29 16:32:03 +01:00 by adam · 4 comments
Owner

Originally created by @Zimeon- on GitHub (Nov 17, 2017).

Issue type

[ ] Feature request
[X ] Bug report
[ ] Documentation

Environment

  • Python version: 2.7.5
  • NetBox version: v2.2.6

Description

When viewing a prefix, that has all IPv4 host addresses used, it still shows the prefix as not fully utilized. For example in a /26 subnet, with all 62 host addressed utilized, it shows the prefix as 96% full.

Would propose that the subnet utilization calculation to be changed, so that the broadcast and network addresses are not calculated when showing the subnet utilization.

Also regarding to https://github.com/digitalocean/netbox/issues/1669, when the block is full it will default back to network address. Perhaps remove the add ip-address option when a subnet is fully utilized from a host perspective. Imho any network stuff would be documented in the prefix, not in the network ip or broadcast ip.

Originally created by @Zimeon- on GitHub (Nov 17, 2017). ### Issue type [ ] Feature request <!-- An enhancement of existing functionality --> [X ] Bug report <!-- Unexpected or erroneous behavior --> [ ] Documentation <!-- A modification to the documentation --> ### Environment * Python version: 2.7.5 * NetBox version: v2.2.6 ### Description When viewing a prefix, that has all IPv4 host addresses used, it still shows the prefix as not fully utilized. For example in a /26 subnet, with all 62 host addressed utilized, it shows the prefix as 96% full. Would propose that the subnet utilization calculation to be changed, so that the broadcast and network addresses are not calculated when showing the subnet utilization. Also regarding to https://github.com/digitalocean/netbox/issues/1669, when the block is full it will default back to network address. Perhaps remove the add ip-address option when a subnet is fully utilized from a host perspective. Imho any network stuff would be documented in the prefix, not in the network ip or broadcast ip.
adam added the type: bug label 2025-12-29 16:32:03 +01:00
adam closed this issue 2025-12-29 16:32:03 +01:00
Author
Owner

@dirtycajunrice commented on GitHub (Nov 20, 2017):

@Zimeon- I cannot reproduce this issue. Do you have "Is a pool" checked on that subnet?

@dirtycajunrice commented on GitHub (Nov 20, 2017): @Zimeon- I cannot reproduce this issue. Do you have "Is a pool" checked on that subnet?
Author
Owner

@Zimeon- commented on GitHub (Nov 21, 2017):

https://imgur.com/BYrEk6c

An example from out view.

@Zimeon- commented on GitHub (Nov 21, 2017): https://imgur.com/BYrEk6c An example from out view.
Author
Owner

@dirtycajunrice commented on GitHub (Nov 22, 2017):

Yes, this is the intended behavior when "is pool" is checked. It allows the allocation of broadcast and network IPs. If you uncheck "is pool" in that subnet's settings you will get your desired 100% utilization.

@dirtycajunrice commented on GitHub (Nov 22, 2017): Yes, this is the intended behavior when "is pool" is checked. It allows the allocation of broadcast and network IPs. If you uncheck "is pool" in that subnet's settings you will get your desired 100% utilization.
Author
Owner

@jeremystretch commented on GitHub (Nov 22, 2017):

I've marked this as a bug because the way we show utilization right now isn't clear. The "utilization" attribute of the prefix view always lists the number of child IP addresses it contains, but the utilization percentage is calculated differently for container and non-container prefixes.

I've moved the IP count to the "IP addresses" tab at the top, and replaced the attribute with the utilization graph that's displayed in the prefixes list.

@jeremystretch commented on GitHub (Nov 22, 2017): I've marked this as a bug because the way we show utilization right now isn't clear. The "utilization" attribute of the prefix view always lists the number of child IP addresses it contains, but the utilization percentage is calculated differently for container and non-container prefixes. I've moved the IP count to the "IP addresses" tab at the top, and replaced the attribute with the utilization graph that's displayed in the prefixes list.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1409