netbox icon indicating copy to clipboard operation
netbox copied to clipboard

IP range utilization bar being rounded down

Open Azmodeszer opened this issue 1 year ago • 0 comments

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.

Azmodeszer avatar Mar 25 '24 19:03 Azmodeszer