2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-27 19:37:44 +00:00

Add LXPM driver bundle info to inventory

LXPM has driver bundle packs, provide this information
to the nodefirmware command.

Change-Id: I85f21892c0591600dea8f964961ec236775b52d2
This commit is contained in:
Jarrod Johnson 2017-09-05 11:14:30 -04:00
parent c7215ce77c
commit 3627ba60d1

View File

@ -502,6 +502,20 @@ class XCCClient(IMMClient):
'date': '/v2/tdm/build_date'})
if bdata:
yield ('LXPM', bdata)
bdata = self.fetch_grouped_properties({
'build': '/v2/drvwn/build_id',
'version': '/v2/drvwn/build_version',
'date': '/v2/drvwn/build_date',
})
if bdata:
yield ('LXPM Windows Driver Bundle', bdata)
bdata = self.fetch_grouped_properties({
'build': '/v2/drvln/build_id',
'version': '/v2/drvln/build_version',
'date': '/v2/drvln/build_date',
})
if bdata:
yield ('LXPM Linux Driver Bundle', bdata)
fpga = self.ipmicmd.xraw_command(netfn=0x3a, command=0x6b, data=(0,))
fpga = '{0}.{1}.{2}'.format(*[ord(x) for x in fpga['data']])
yield ('FPGA', {'version': fpga})