From 4e19aa985c2ff03add843c1e0ccbbd1cbd59eabf Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 13 Mar 2025 15:43:28 -0400 Subject: [PATCH] Add facility for managing ikvm launch Change-Id: I7db63b95d5740b3fa94ab70da0e7a4db56a5690c --- pyghmi/ipmi/command.py | 8 ++++++++ pyghmi/ipmi/oem/generic.py | 9 ++++++++- pyghmi/ipmi/oem/lenovo/handler.py | 9 +++++++++ pyghmi/ipmi/oem/lenovo/imm.py | 12 ++++++++++++ pyghmi/redfish/command.py | 6 ++++++ pyghmi/redfish/oem/generic.py | 6 ++++++ pyghmi/redfish/oem/lenovo/xcc.py | 11 +++++++++++ pyghmi/redfish/oem/lenovo/xcc3.py | 11 +++++++++++ 8 files changed, 71 insertions(+), 1 deletion(-) diff --git a/pyghmi/ipmi/command.py b/pyghmi/ipmi/command.py index 9684a824..6ae8539c 100644 --- a/pyghmi/ipmi/command.py +++ b/pyghmi/ipmi/command.py @@ -654,6 +654,14 @@ class Command(object): return sel.EventHandler(self.init_sdr(), self).decode_pet(specifictrap, petdata) + def get_ikvm_methods(self): + self.oem_init() + return self._oem.get_ikvm_methods() + + def get_ikvm_launchdata(self): + self.oem_init() + return self._oem.get_ikvm_launchdata() + def get_inventory_descriptions(self): """Retrieve list of things that could be inventoried diff --git a/pyghmi/ipmi/oem/generic.py b/pyghmi/ipmi/oem/generic.py index faa304b7..9f3ec363 100644 --- a/pyghmi/ipmi/oem/generic.py +++ b/pyghmi/ipmi/oem/generic.py @@ -47,7 +47,14 @@ class OEMHandler(object): rsp = ipmicmd.xraw_command(netfn=0x2c, command=2, data=(0xdc, 1, 0, 0)) wattage = struct.unpack('