From: Christos Sfakianakis <csfakian(a)redhat.com>
Enable perf from both sides in 3 of the recipes to account
for this missing feature (it exists in their old variants).
Signed-off-by: Christos Sfakianakis <csfakian(a)redhat.com>
---
lnst/Recipes/ENRT/DoubleTeamRecipe.py | 3 ++-
lnst/Recipes/ENRT/TeamRecipe.py | 3 ++-
lnst/Recipes/ENRT/TeamVsBondRecipe.py | 3 ++-
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/lnst/Recipes/ENRT/DoubleTeamRecipe.py
b/lnst/Recipes/ENRT/DoubleTeamRecipe.py
index e10ea79..1dd5899 100644
--- a/lnst/Recipes/ENRT/DoubleTeamRecipe.py
+++ b/lnst/Recipes/ENRT/DoubleTeamRecipe.py
@@ -2,7 +2,7 @@
Implements scenario similar to regression_tests/phase2/
({active_backup,round_robin}_double_team.xml + team_test.py)
"""
-from lnst.Common.Parameters import Param, IntParam, StrParam
+from lnst.Common.Parameters import Param, IntParam, StrParam, BoolParam
from lnst.Common.IpAddress import ipaddress
from lnst.Controller import HostReq, DeviceReq
from lnst.Recipes.ENRT.BaseEnrtRecipe import BaseEnrtRecipe, EnrtConfiguration
@@ -23,6 +23,7 @@ class DoubleTeamRecipe(BaseEnrtRecipe):
dict(gro="on", gso="off", tso="off",
tx="on"),
dict(gro="on", gso="on", tso="off",
tx="off")))
+ perf_reverse = BoolParam(default=True)
runner_name = StrParam(mandatory=True)
def test_wide_configuration(self):
diff --git a/lnst/Recipes/ENRT/TeamRecipe.py b/lnst/Recipes/ENRT/TeamRecipe.py
index 6b95ccd..35bd988 100644
--- a/lnst/Recipes/ENRT/TeamRecipe.py
+++ b/lnst/Recipes/ENRT/TeamRecipe.py
@@ -2,7 +2,7 @@
Implements scenario similar to regression_tests/phase2/
({active_backup,round_robin}_team.xml + team_test.py)
"""
-from lnst.Common.Parameters import Param, IntParam, StrParam
+from lnst.Common.Parameters import Param, IntParam, StrParam, BoolParam
from lnst.Common.IpAddress import ipaddress
from lnst.Controller import HostReq, DeviceReq
from lnst.Recipes.ENRT.BaseEnrtRecipe import BaseEnrtRecipe, EnrtConfiguration
@@ -22,6 +22,7 @@ class TeamRecipe(BaseEnrtRecipe):
dict(gro="on", gso="off", tso="off",
tx="on"),
dict(gro="on", gso="on", tso="off",
tx="off")))
+ perf_reverse = BoolParam(default=True)
runner_name = StrParam(mandatory=True)
def test_wide_configuration(self):
diff --git a/lnst/Recipes/ENRT/TeamVsBondRecipe.py
b/lnst/Recipes/ENRT/TeamVsBondRecipe.py
index dfec20e..ed555e0 100644
--- a/lnst/Recipes/ENRT/TeamVsBondRecipe.py
+++ b/lnst/Recipes/ENRT/TeamVsBondRecipe.py
@@ -3,7 +3,7 @@ Implements scenario similar to regression_tests/phase2/
({active_backup,round_robin}_team_vs_{active_backup,round_robin}
_bond.xml + team_test.py)
"""
-from lnst.Common.Parameters import Param, IntParam, StrParam
+from lnst.Common.Parameters import Param, IntParam, StrParam, BoolParam
from lnst.Common.IpAddress import ipaddress
from lnst.Controller import HostReq, DeviceReq
from lnst.Recipes.ENRT.BaseEnrtRecipe import BaseEnrtRecipe, EnrtConfiguration
@@ -25,6 +25,7 @@ class TeamVsBondRecipe(BaseEnrtRecipe):
dict(gro="on", gso="off", tso="off",
tx="on"),
dict(gro="on", gso="on", tso="off",
tx="off")))
+ perf_reverse = BoolParam(default=True)
runner_name = StrParam(mandatory = True)
bonding_mode = StrParam(mandatory = True)
miimon_value = IntParam(mandatory = True)
--
2.17.1