summaryrefslogtreecommitdiff
path: root/tests/topotests/lib/common_config.py
diff options
context:
space:
mode:
authorKuldeep Kashyap <kashyapk@vmware.com>2020-07-01 13:16:34 +0000
committerKuldeep Kashyap <kashyapk@vmware.com>2020-07-22 09:04:16 +0000
commit1b66072ce04494d11ee54f6f3486816ec8be98bc (patch)
tree8f9f26f600adeca81c231413ef14fb0637b60e3c /tests/topotests/lib/common_config.py
parent3c334c391524159d944ffb2abf841d5f07df9721 (diff)
tests: Adding test suites evpn_type5_test_topo1
1. Added 15 test cases to test evpn type5 functionality 2. Total execution time is ~9 mins Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
Diffstat (limited to 'tests/topotests/lib/common_config.py')
-rw-r--r--tests/topotests/lib/common_config.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/topotests/lib/common_config.py b/tests/topotests/lib/common_config.py
index 2b1f269e6c..156a5f7ea4 100644
--- a/tests/topotests/lib/common_config.py
+++ b/tests/topotests/lib/common_config.py
@@ -2352,7 +2352,7 @@ def configure_brctl(tgen, topo, input_dict):
):
ip_cmd_list = []
- cmd = "brctl addbr {}".format(brctl_name)
+ cmd = "ip link add name {} type bridge stp_state {}".format(brctl_name, stp)
logger.info("[DUT: %s]: Running command: %s", dut, cmd)
rnode.run(cmd)
@@ -2360,19 +2360,13 @@ def configure_brctl(tgen, topo, input_dict):
ip_cmd_list.append("{} up dev {}".format(ip_cmd, brctl_name))
if vxlan:
- cmd = "brctl addif {} {}".format(brctl_name, vxlan)
+ cmd = "{} dev {} master {}".format(ip_cmd, vxlan, brctl_name)
logger.info("[DUT: %s]: Running command: %s", dut, cmd)
rnode.run(cmd)
ip_cmd_list.append("{} up dev {}".format(ip_cmd, vxlan))
- if stp:
- cmd = "brctl stp {} {}".format(brctl_name, stp)
-
- logger.info("[DUT: %s]: Running command: %s", dut, cmd)
- rnode.run(cmd)
-
if vrf:
ip_cmd_list.append(
"{} dev {} master {}".format(ip_cmd, brctl_name, vrf)