napalm-automation / napalm-junos

Apache License 2.0
22 stars 42 forks source link

get_environment temperature generates an exception against SRX #222

Closed ktbyers closed 6 years ago

ktbyers commented 6 years ago

napalm-junos 0.12.0

get_environment against an Juniper SRX yielded:

  File "/home/kbyers/VENV/py35_venv/local/lib/python3.5/site-packages/napalm_junos/junos.py", line 399, in get_environment
    if structured_temperature_data['red-alarm'] <= temp:
TypeError: unorderable types: int() <= NoneType()
mirceaulinic commented 6 years ago

Moved to https://github.com/napalm-automation/napalm/issues/429