The second IPMI poll of a BMC in the same worker process failed with "'<' not supported between instances of 'float' and 'NoneType'". pyghmi files a session in Session.initting_sessions under the credentials as str and deletes it only under bytes, so the entry stays and the next Command got the old, logged-out session back. The driver drops that entry itself before open() and after close(). Reproduced and verified live against the Supermicro X10DRL-i: three polls in one process now succeed. IpmiDriver and RedfishDriver mix in HealthMetricsMixin, so netOrk's SNMP health poll reads the BMC's own load, memory and interfaces where the BMC runs net-snmp with the UCD-MIB, as the X10's does.
12 lines
419 B
Python
12 lines
419 B
Python
"""NAPALM drivers for server BMCs: DMTF Redfish, and read-only IPMI as the fallback.
|
|
|
|
Only ``RedfishDriver`` is exported here: NAPALM's own ``get_network_driver("redfish")``
|
|
takes the first driver class of this package. ``IpmiDriver`` lives in
|
|
``napalm_redfish.ipmi`` and is registered as the ``ipmi`` entry point.
|
|
"""
|
|
|
|
from napalm_redfish.driver import RedfishDriver
|
|
|
|
__version__ = "0.2.1"
|
|
__all__ = ["RedfishDriver"]
|