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

Utilization can push up to 200% #6812

Closed
c-po opened this issue Jul 26, 2021 · 3 comments
Closed

Utilization can push up to 200% #6812

c-po opened this issue Jul 26, 2021 · 3 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@c-po
Copy link

c-po commented Jul 26, 2021

NetBox version

v2.11.9

Python version

3.6

Steps to Reproduce

  1. Create a new prefix 192.0.2.0/30
  2. Import IP addresses via https:///ipam/ip-addresses/import/
address
192.0.2.0/30
192.0.2.1/30
192.0.2.2/30
192.0.2.3/30

Expected Behavior

An error should be raised as 192.0.2.0/30 and 192.0.2.3/30 are no host addresses

Observed Behavior

image

image

@c-po c-po added the type: bug A confirmed report of unexpected behavior in the application label Jul 26, 2021
@jeremystretch jeremystretch added the status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation label Jul 26, 2021
@sdktr
Copy link
Contributor

sdktr commented Jul 27, 2021

I don't think we should block the creation of these (subnet/broadcast) IP's. The creation of them might very well be intended to do just that: reflect how the IP's are behaving. Nice excercise for the new 'CustomValidator' hooks :-)

A utilization above 100% does seem odd as well though. Maybe we could put an artificial limit on that number to cap it at 100?

@jeremystretch
Copy link
Member

Capping it at 100% seems like the way to go.

@c-po
Copy link
Author

c-po commented Jul 28, 2021

@sdktr and @jeremystretch I agree that capping would also be a viable option if one want's to document those IP addresses.

What happens if the network and broadcast address is documented but two host addresses are still free? Will it show 100%, too?

Network and Broadcast addresses can be calculated, so I think the most effective way would be to not take them into account when calculating the host address usage in percent.

@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Jul 28, 2021
@jeremystretch jeremystretch self-assigned this Jul 28, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 27, 2021
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

3 participants