Skip to content

IP range utilization bar being rounded down #15524

@Azmodeszer

Description

@Azmodeszer

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.

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions