Skip to content

Rounding required for °F temperature conversion in Napalm device status tab #7228

@candlerb

Description

@candlerb

NetBox version

v3.0.2

Python version

3.8

Steps to Reproduce

  1. Configure napalm
  2. Go to a napalm-enabled device which reports temperature (mine's a Mikrotik RB4011)
  3. Go to the Status tab: /dcim/devices/<N>/status/
  4. Look at the °F temperature conversion

Expected Behavior

°F temperature to one decimal place at most.

Observed Behavior

I see 42 °C 107.60000000000001 °F

image

This isn't always the case - e.g. on another device I see 51 °C 123.8 °F

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions