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

Formatting of data within status tab of devices #1429

Closed
BMH64 opened this issue Aug 15, 2017 · 2 comments
Closed

Formatting of data within status tab of devices #1429

BMH64 opened this issue Aug 15, 2017 · 2 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@BMH64
Copy link

BMH64 commented Aug 15, 2017

Issue type: Bug

Properly format data under "status" tab within a device integrated with napalm

Python version: 3
NetBox version: 2.1.3

Currently under device status when integrating with napalm the uptime is show as a large number which I'm assuming to be seconds. Should be human readable such as YEARS:MONTHS:WEEKS:DAYS:etc;
Also the memory is formatted incorrectly shows as

Available 28445500MB
Used 10729512MB
@jeremystretch
Copy link
Member

We can probably do something with the uptime. It looks like your device is reporting memory in KB rather than MB. I'm not sure whether NAPALM's get_environment() takes a stance on unit.

@jeremystretch jeremystretch added the type: bug A confirmed report of unexpected behavior in the application label Aug 16, 2017
@jeremystretch
Copy link
Member

I'm just going to omit the memory unit for now since it seems to differ by platform.

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: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants