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:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user