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:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user