netbox
netbox copied to clipboard
IP range utilization bar being rounded down
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.
- Create an IP range, let's say 1.1.1.1-254/24.
- 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.