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

Add channel parameter to add_extra_net_configuration

Change-Id: I9f0b1adb0f305b6a60c9c6b0cb3ae9563b4ec85f
This commit is contained in:
luyf5
2021-11-09 17:06:35 +08:00
parent 3a8fec21fe
commit 8a95b954e8
3 changed files with 3 additions and 3 deletions

View File

@@ -1000,7 +1000,7 @@ class Command(object):
retdata['ipv4_backup_gateway_mac'] = self._fetch_lancfg_param(
channel, 15)
self.oem_init()
self._oem.add_extra_net_configuration(retdata)
self._oem.add_extra_net_configuration(retdata, channel)
return retdata
def get_sensor_data(self):

View File

@@ -263,7 +263,7 @@ class OEMHandler(object):
"""Get graphical console launcher"""
return ()
def add_extra_net_configuration(self, netdata):
def add_extra_net_configuration(self, netdata, channel=None):
"""Add additional network configuration data
Given a standard netdata struct, add details as relevant from

View File

@@ -1000,7 +1000,7 @@ class OEMHandler(generic.OEMHandler):
self.ipmicmd.ipmi_session.userid,
self.ipmicmd.ipmi_session.password)
def add_extra_net_configuration(self, netdata):
def add_extra_net_configuration(self, netdata, channel=None):
if self.has_tsm:
ipv6_addr = self.ipmicmd.xraw_command(
netfn=0x0c, command=0x02,