From ce4f2558629ab5233c7aae01060add47030f4799 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 22 Jan 2020 14:35:40 -0500 Subject: [PATCH] Connect redfish configuration to TSMA IPMI This corrects the inability to set for ipmi clients of TSMA devices. Change-Id: I253ae562bffc6129d41371b9cf4cbc669248b836 --- pyghmi/ipmi/oem/lenovo/handler.py | 2 ++ pyghmi/redfish/oem/lenovo/tsma.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/pyghmi/ipmi/oem/lenovo/handler.py b/pyghmi/ipmi/oem/lenovo/handler.py index 5c50d57b..43ef8c60 100755 --- a/pyghmi/ipmi/oem/lenovo/handler.py +++ b/pyghmi/ipmi/oem/lenovo/handler.py @@ -993,6 +993,8 @@ class OEMHandler(generic.OEMHandler): def set_system_configuration(self, changeset): if self.has_imm or self.has_xcc: return self.immhandler.set_system_configuration(changeset) + if self.has_tsma: + return self.tsmahandler.set_uefi_configuration(changeset) return super(OEMHandler, self).set_system_configuration(changeset) def clear_bmc_configuration(self): diff --git a/pyghmi/redfish/oem/lenovo/tsma.py b/pyghmi/redfish/oem/lenovo/tsma.py index 38a0ffc7..e9c45911 100644 --- a/pyghmi/redfish/oem/lenovo/tsma.py +++ b/pyghmi/redfish/oem/lenovo/tsma.py @@ -92,6 +92,9 @@ class TsmHandler(generic.OEMHandler): def get_uefi_configuration(self, hideadvanced=True): return self.fishclient.get_system_configuration(hideadvanced) + def set_uefi_configuration(self, changeset): + return self.fishclient.set_system_configuration(changeset) + def get_diagnostic_data(self, savefile, progress=None, autosuffix=False): wc = self.wc wc.grab_json_response('/api/mini_ffdc', {'action': 'trigger'})