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

Speed abbreviation improvement #1326

Closed
InsaneSplash opened this issue Jul 10, 2017 · 4 comments
Closed

Speed abbreviation improvement #1326

InsaneSplash opened this issue Jul 10, 2017 · 4 comments
Labels
type: feature Introduction of new functionality to the application

Comments

@InsaneSplash
Copy link

Issue type: request

Python version:
NetBox version:2.0.8

Provide the function to summarise both 1000000 and 1024000 values in human readable form as 1Gbs instead of showing it as 1024Mbs. This would apply to 10Mbs, 100Mbs, 10Gbs.

@jeremystretch
Copy link
Member

FYI line rate is always expressed in bits. 1.024 Gbps is not the same as 1 Gbps.

@jeremystretch jeremystretch added the type: feature Introduction of new functionality to the application label Jul 10, 2017
@jeremystretch jeremystretch changed the title request: speed abbreviation improvement Speed abbreviation improvement Jul 10, 2017
@bellwood
Copy link
Contributor

Throwing my .02 in, this would be very handy...

I would argue though for any data imports, values would need to be provided in bits to simplify the process

@ktims
Copy link

ktims commented Jul 26, 2017

Can I morph this to a request for accepting abbreviations in the input fields (e.g. '1g' or '10g')? Counting zeros (and there are a lot of them) and remembering that it is expecting kbps, not bps or mbps as I would consider more intuitive, is a bit annoying.

Hmm, and now that I think of it, maybe pulling in the speed from the interface type when an interface is selected for a circuit would be nice too. A 10GBASE interface is probably connected at 10G, and deleting one zero if not is preferable to typing 6 of them.

@jeremystretch
Copy link
Member

Can I morph this to a request for accepting abbreviations in the input fields (e.g. '1g' or '10g')?

We should be able to create a custom form field that accepts values like "100m" or "1g" and translates the value to an integer during validation.

Hmm, and now that I think of it, maybe pulling in the speed from the interface type when an interface is selected for a circuit would be nice too.

That might be dangerous. It's common practice to set a 1GE interface to 100 Mbps to effect rate limiting, for example.

lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

4 participants