diff --git a/pyghmi/ipmi/command.py b/pyghmi/ipmi/command.py index 71cca1ff..e0f7f1c1 100644 --- a/pyghmi/ipmi/command.py +++ b/pyghmi/ipmi/command.py @@ -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): diff --git a/pyghmi/ipmi/oem/generic.py b/pyghmi/ipmi/oem/generic.py index 2aaef5a6..4709f3a0 100644 --- a/pyghmi/ipmi/oem/generic.py +++ b/pyghmi/ipmi/oem/generic.py @@ -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 diff --git a/pyghmi/ipmi/oem/lenovo/handler.py b/pyghmi/ipmi/oem/lenovo/handler.py index 5cfa0310..61f30407 100755 --- a/pyghmi/ipmi/oem/lenovo/handler.py +++ b/pyghmi/ipmi/oem/lenovo/handler.py @@ -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,