Werk #19677 · Apr 13, 26
Hardware/software inventory: tolerate textual ifAdminStatus values
Some SNMP devices report ifAdminStatus and ifOperStatus as textual labels
(for example up, down, notPresent) instead of the numeric states
defined in the IF-MIB. When the hardware/software inventory parser tried to
convert the textual value to an integer it crashed with
ValueError: invalid literal for int() with base 10.
The parser now maps the known IF-MIB text labels back to their numeric state values, so inventory is collected correctly for these devices.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Inventory
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0All Editions