On Tue, Aug 21, 2018 at 02:11:06PM +0200, csfakian@redhat.com wrote:
From: Christos Sfakianakis csfakian@redhat.com
Adding ported recipe ActiveBackupBondRecipe, implementing old regression_tests/phase1/active_backup_bond.xml.Its structure is based on previously ported SimplePerfRecipe.
Signed-off-by: Christos Sfakianakis csfakian@redhat.com
lnst/Recipes/ENRT/ActiveBackupBondRecipe.py | 68 +++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 lnst/Recipes/ENRT/ActiveBackupBondRecipe.py
diff --git a/lnst/Recipes/ENRT/ActiveBackupBondRecipe.py b/lnst/Recipes/ENRT/ActiveBackupBondRecipe.py new file mode 100644 index 0000000..62556b4 --- /dev/null +++ b/lnst/Recipes/ENRT/ActiveBackupBondRecipe.py @@ -0,0 +1,68 @@ +""" +Implements scenario similar to regression_tests/phase1/ +(active_backup_bond.xml + bonding_test.py) +""" +from lnst.Common.Parameters import Param +from lnst.Common.IpAddress import ipaddress +from lnst.Controller import HostReq, DeviceReq +from lnst.Recipes.ENRT.BaseEnrtRecipe import BaseEnrtRecipe, EnrtConfiguration +from lnst.Devices import BondDevice
+class ActiveBackupBondRecipe(BaseEnrtRecipe):
- m1 = HostReq()
- m1.eth0 = DeviceReq(label="net1")
- m1.eth1 = DeviceReq(label="net1")
- m2 = HostReq()
- m2.eth0 = DeviceReq(label="net1")
- offload_combinations = Param(default=(
dict(gro="on", gso="on", tso="on", tx="on"),dict(gro="off", gso="on", tso="on", tx="on"),dict(gro="on", gso="off", tso="off", tx="on"),dict(gro="on", gso="on", tso="off", tx="off")))
There should also be a miimon bond parameter added to keep feature parity with the old phase1 recipe. Default value we've been using is '100'. This is valid for both the active backup and the round robin cases as well as the double bond scenarios.
-Ondrej