Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RIRs page displays floating point IP address totals #2257

Closed
mdlayher opened this issue Jul 20, 2018 · 0 comments
Closed

RIRs page displays floating point IP address totals #2257

mdlayher opened this issue Jul 20, 2018 · 0 comments
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@mdlayher
Copy link
Contributor

mdlayher commented Jul 20, 2018

Issue type

[ ] Feature request
[x] Bug report
[ ] Documentation
[ ] Housekeeping

Environment

  • Python version: 3.x? (DigitalOcean prod)
  • NetBox version: 2.3.6

Description

Any of the RIRs listed in our production NetBox instance with more than 0 addresses assigned from that RIR display the address counts as floating point numbers with a .0 suffix. As an example:

RFC 1918 | ✔ | 3 | 17891328.0 | 3165838.0 | 99704.0 | 67584.0 | 14562830.0

The IPv6 equivalent:

RFC 4193 | ✔ | 1 | 7.205759403792794e+16 | 65536.0 | 0.0 | 0.0 | 7.20575940378624e+16

In the case of IPv6, this makes more sense due to the huge number of addresses. But perhaps it'd be best to just approximate IPv6 address totals. I'll leave it up to you to decide if this should be a separate bug (or feature, really!).

@jeremystretch jeremystretch added type: bug A confirmed report of unexpected behavior in the application status: accepted This issue has been accepted for implementation labels Jul 23, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jan 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants