From: Jiri Pirko jiri@mellanox.com
Signed-off-by: Jiri Pirko jiri@mellanox.com --- lnst/Devices/MasterDevice.py | 4 ++-- lnst/Devices/TeamDevice.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lnst/Devices/MasterDevice.py b/lnst/Devices/MasterDevice.py index afd2060..0ed4751 100644 --- a/lnst/Devices/MasterDevice.py +++ b/lnst/Devices/MasterDevice.py @@ -27,7 +27,7 @@ class MasterDevice(SoftDevice): return ret
def slave_add(self, dev): - dev.master_set(self) + dev.master = self
def slave_del(self, dev): - dev.master_set(None) + dev.master = None diff --git a/lnst/Devices/TeamDevice.py b/lnst/Devices/TeamDevice.py index 7ae797a..c7d151d 100644 --- a/lnst/Devices/TeamDevice.py +++ b/lnst/Devices/TeamDevice.py @@ -58,4 +58,4 @@ class TeamDevice(MasterDevice): dev.name, prepare_json_str(port_config)))
- dev.master_set(self) + dev.master = self