From ed4f25d8941d4220059b77c17f042fc425b2534f Mon Sep 17 00:00:00 2001 From: Penghui Cui Date: Fri, 24 Sep 2021 10:20:15 +0800 Subject: [PATCH] Support getting net configuration from oem handler Change-Id: I183d8e60ad6513250baaa0a72d5843a424af4849 --- pyghmi/ipmi/command.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyghmi/ipmi/command.py b/pyghmi/ipmi/command.py index 6709db1c..d1b418e2 100644 --- a/pyghmi/ipmi/command.py +++ b/pyghmi/ipmi/command.py @@ -937,6 +937,12 @@ class Command(object): :param gateway_macs: Whether to retrieve mac addresses for gateways :returns: A dictionary of network configuration data """ + self.oem_init() + + # support for huawei 2288H server + if hasattr(self._oem, 'get_oem_net_configuration'): + return self._oem.get_oem_net_configuration() + if channel is None: channel = self.get_network_channel() retdata = {}