Skip to content

Commit 2297eae

Browse files
authored
[po2vlan] Skip po2vlan on dualtor testbeds (sonic-net#8474)
Approach What is the motivation for this PR? As the subject, po2vlan is not needed for dualtor tests. Signed-off-by: Longxiang Lyu lolv@microsoft.com How did you do it? skip if topo if dualtor. How did you verify/test it? Any platform specific information?
1 parent 9e619eb commit 2297eae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/common/helpers/portchannel_to_vlan.py

+5
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,11 @@ def setup_acl_table(duthost, tbinfo, acl_rule_cleanup):
380380
@pytest.fixture(scope="module", autouse=True)
381381
def setup_po2vlan(duthosts, ptfhost, rand_one_dut_hostname, rand_selected_dut, ptfadapter,
382382
ports_list, tbinfo, vlan_intfs_dict, setup_acl_table): # noqa F811
383+
384+
if "dualtor" in tbinfo["topo"]["name"]:
385+
yield
386+
return
387+
383388
duthost = duthosts[rand_one_dut_hostname]
384389
# --------------------- Setup -----------------------
385390
try:

0 commit comments

Comments
 (0)