Skip to content

Prefix Utilization is Always 0% #1689

@girlpunk

Description

@girlpunk

Issue type

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

Environment

  • Python version: 3.5.3
  • NetBox version: 2.2.4

Description

Just noticed this after upgrading to the latest version and adding some new prefixes to subnet an existing prefix. After doing so, the utilization for the new prefixes shows the correct number of IPs, but the percentage is always 0%.
This appears to be caused by the get_utilization() function's IPAddress filter.

Steps to reproduce

  1. Create a Prefix
  2. Add IPs to the prefix
  3. Subnet the prefix by adding a child prefix. The prefix correctly identifies the IPs already added, and shows them in the list and utilization count, but not the percentage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: 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