summaryrefslogtreecommitdiff
path: root/tests/topotests/lib/common_config.py
diff options
context:
space:
mode:
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)