Formatting of data within status tab of devices #1176

Closed
opened 2025-12-29 16:29:44 +01:00 by adam · 2 comments
Owner

Originally created by @BMH64 on GitHub (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
Originally created by @BMH64 on GitHub (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
adam added the type: bug label 2025-12-29 16:29:44 +01:00
adam closed this issue 2025-12-29 16:29:44 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 16, 2017):

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 commented on GitHub (Aug 16, 2017): 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()`](http://napalm.readthedocs.io/en/latest/base.html#napalm_base.base.NetworkDriver.get_environment) takes a stance on unit.
Author
Owner

@jeremystretch commented on GitHub (Aug 16, 2017):

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

@jeremystretch commented on GitHub (Aug 16, 2017): I'm just going to omit the memory unit for now since it seems to differ by platform.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1176