2
0
mirror of https://opendev.org/x/pyghmi synced 2026-03-31 15:23:31 +00:00

Merge "Support getting net configuration from oem handler"

This commit is contained in:
Zuul
2021-09-27 13:11:31 +00:00
committed by Gerrit Code Review

View File

@@ -941,6 +941,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 = {}