mirror of
https://opendev.org/x/pyghmi
synced 2026-06-18 01:20:49 +00:00
Extent redfish inventory enumeration of XCC
Have the inventory explicitly cover the memory and processors. Change-Id: I9fcb85f21a460c45285ec80c06093a077751a3c1
This commit is contained in:
@@ -781,12 +781,12 @@ class OEMHandler(object):
|
||||
def update_firmware(self, filename, data=None, progress=None, bank=None):
|
||||
usd = self._do_web_request('/redfish/v1/UpdateService')
|
||||
if usd.get('HttpPushUriTargetsBusy', False):
|
||||
raise pygexc.TemporaryError('Cannot run multtiple updates to '
|
||||
raise exc.TemporaryError('Cannot run multtiple updates to '
|
||||
'same target concurrently')
|
||||
try:
|
||||
upurl = usd['HttpPushUri']
|
||||
except KeyError:
|
||||
raise pygexc.UnsupportedFunctionality('Redfish firmware update only supported for implementations with push update support')
|
||||
raise exc.UnsupportedFunctionality('Redfish firmware update only supported for implementations with push update support')
|
||||
if 'HttpPushUriTargetsBusy' in usd:
|
||||
self._do_web_request(
|
||||
'/redfish/v1/UpdateService',
|
||||
|
||||
@@ -1646,6 +1646,11 @@ class OEMHandler(generic.OEMHandler):
|
||||
yield "System"
|
||||
for key in natural_sort(hwmap):
|
||||
yield key
|
||||
for cpuinv in self._get_cpu_inventory():
|
||||
yield cpuinv[0]
|
||||
for meminv in self._get_mem_inventory():
|
||||
yield meminv[0]
|
||||
|
||||
|
||||
def get_inventory_of_component(self, compname):
|
||||
if compname.lower() == 'system':
|
||||
@@ -1662,7 +1667,12 @@ class OEMHandler(generic.OEMHandler):
|
||||
try:
|
||||
return hwmap[compname]
|
||||
except KeyError:
|
||||
|
||||
for cpuinv in self._get_cpu_inventory():
|
||||
if cpuinv[0] == compname:
|
||||
return cpuinv[1]
|
||||
for meminv in self._get_mem_inventory():
|
||||
if meminv[0] == compname:
|
||||
return meminv[1]
|
||||
return None
|
||||
|
||||
def get_inventory(self, withids=False):
|
||||
|
||||
Reference in New Issue
Block a user