The TeamDevice has been fixed so the runner_name test parameter
can be passed through TeamDevice's config parameter.
Signed-off-by: Jan Tluka <jtluka(a)redhat.com>
---
lnst/Recipes/ENRT/DoubleTeamRecipe.py | 7 +++----
lnst/Recipes/ENRT/TeamVsBondRecipe.py | 5 +----
lnst/Recipes/ENRT/VlansOverTeamRecipe.py | 5 +----
3 files changed, 5 insertions(+), 12 deletions(-)
diff --git a/lnst/Recipes/ENRT/DoubleTeamRecipe.py
b/lnst/Recipes/ENRT/DoubleTeamRecipe.py
index 12f56fc8..711019d7 100644
--- a/lnst/Recipes/ENRT/DoubleTeamRecipe.py
+++ b/lnst/Recipes/ENRT/DoubleTeamRecipe.py
@@ -34,10 +34,9 @@ class DoubleTeamRecipe(CommonHWSubConfigMixin, OffloadSubConfigMixin,
net_addr_1 = "192.168.10"
net_addr6_1 = "fc00:0:0:1"
for i, host in enumerate([host1, host2]):
- #The config argument needs to be used with a team device
- #normally (e.g to specify the runner mode), but it is not used
- #here due to a bug in the TeamDevice module
- host.team0 = TeamDevice()
+ host.team0 = TeamDevice(
+ config={'runner': {'name': self.params.runner_name}}
+ )
for dev in [host.eth0, host.eth1]:
dev.down()
host.team0.slave_add(dev)
diff --git a/lnst/Recipes/ENRT/TeamVsBondRecipe.py
b/lnst/Recipes/ENRT/TeamVsBondRecipe.py
index 8971bc21..515d2ea9 100644
--- a/lnst/Recipes/ENRT/TeamVsBondRecipe.py
+++ b/lnst/Recipes/ENRT/TeamVsBondRecipe.py
@@ -34,10 +34,7 @@ class TeamVsBondRecipe(CommonHWSubConfigMixin, OffloadSubConfigMixin,
def test_wide_configuration(self):
host1, host2 = self.matched.host1, self.matched.host2
- #The config argument needs to be used with a team device normally
- #(e.g to specify the runner mode), but it is not used here due to
- #a bug in the TeamDevice module
- host1.team0 = TeamDevice()
+ host1.team0 = TeamDevice(config={'runner': {'name':
self.params.runner_name}})
host2.bond0 = BondDevice(mode=self.params.bonding_mode,
miimon=self.params.miimon_value)
diff --git a/lnst/Recipes/ENRT/VlansOverTeamRecipe.py
b/lnst/Recipes/ENRT/VlansOverTeamRecipe.py
index cc00c3cd..b51047cf 100644
--- a/lnst/Recipes/ENRT/VlansOverTeamRecipe.py
+++ b/lnst/Recipes/ENRT/VlansOverTeamRecipe.py
@@ -34,10 +34,7 @@ class VlansOverTeamRecipe(VlanPingEvaluatorMixin,
def test_wide_configuration(self):
host1, host2 = self.matched.host1, self.matched.host2
- #The config argument needs to be used with a team device normally
- #(e.g to specify the runner mode), but it is not used here due to
- #a bug in the TeamDevice module
- host1.team0 = TeamDevice()
+ host1.team0 = TeamDevice(config={'runner': {'name':
self.params.runner_name}})
for dev in [host1.eth0, host1.eth1]:
dev.down()
host1.team0.slave_add(dev)
--
2.21.1