コード例 #1
0
ファイル: handler.py プロジェクト: throbs/pyghmi
 def __init__(self, oemid, ipmicmd):
     # will need to retain data to differentiate
     # variations.  For example System X versus Thinkserver
     self.oemid = oemid
     self.ipmicmd = weakref.proxy(ipmicmd)
     self._has_megarac = None
     self.oem_inventory_info = None
     self._mrethidx = None
     self._hasimm = None
     if self.has_imm:
         self.immhandler = imm.IMMClient(ipmicmd)
コード例 #2
0
ファイル: handler.py プロジェクト: BobzhouCH/pyghmi
 def __init__(self, oemid, ipmicmd, snmpcmd):
     # will need to retain data to differentiate
     # variations.  For example System X versus Thinkserver
     self.vendor = 'lenovo'
     self.oemid = oemid
     self._fpc_variant = None
     self.ipmicmd = weakref.proxy(ipmicmd)
     self._has_megarac = None
     self.oem_inventory_info = None
     self._mrethidx = None
     self._hasimm = None
     self._hasxcc = None
     self.snmpcmd = snmpcmd
     if self.has_xcc:
         self.immhandler = imm.XCCClient(ipmicmd)
     elif self.has_imm:
         self.immhandler = imm.IMMClient(ipmicmd)