IP range utilization bar being rounded down #9388

Closed
opened 2025-12-29 20:49:13 +01:00 by adam · 0 comments
Owner

Originally created by @Azmodeszer on GitHub (Mar 25, 2024).

Originally assigned to: @arthanson on GitHub.

Deployment Type

Self-hosted

NetBox Version

v3.7.4

Python Version

3.10

Steps to Reproduce

The utilization bar for IP ranges is not behaving the same way as for prefixes. Decimal digits are apparently being rounded down to the next integer.

  1. Create an IP range, let's say 1.1.1.1-254/24.
  2. Create an IP in that range.

Expected Behavior

Utilization shows 0.4% (and indeed this is shown for the prefix without the range and only the solitary IP).

2 IPs 0.8%
3 IPs 1.2%
etc.

Observed Behavior

Utilization shows 0.0%.

2 IPs 0.0%
3 IPs 1.0%
etc.

Originally created by @Azmodeszer on GitHub (Mar 25, 2024). Originally assigned to: @arthanson on GitHub. ### Deployment Type Self-hosted ### NetBox Version v3.7.4 ### Python Version 3.10 ### Steps to Reproduce The utilization bar for IP ranges is not behaving the same way as for prefixes. Decimal digits are apparently being rounded down to the next integer. 1. Create an IP range, let's say 1.1.1.1-254/24. 2. Create an IP in that range. ### Expected Behavior Utilization shows 0.4% (and indeed this is shown for the **prefix** without the range and only the solitary IP). 2 IPs 0.8% 3 IPs 1.2% etc. ### Observed Behavior Utilization shows 0.0%. 2 IPs 0.0% 3 IPs 1.0% etc.
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 20:49:13 +01:00
adam closed this issue 2025-12-29 20:49:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9388