Skip to content

Commit

Permalink
Skip broadcast test for dual TOR (sonic-net#8729)
Browse files Browse the repository at this point in the history
What is the motivation for this PR?
VLAN tests failed on dual TOR.

How did you do it?
Skip broadcast test for dual TOR.

How did you verify/test it?
Run VLAN tests on dual TOR.
  • Loading branch information
ganglyu authored and parmarkj committed Oct 3, 2023
1 parent 5a01af2 commit 1fbc90f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/vlan/test_vlan.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ def test_vlan_tc1_send_untagged(ptfadapter, duthosts, rand_one_dut_hostname, ran
"""

logger.info("Test case #1 starting ...")
if "dualtor" in tbinfo["topo"]["name"]:
pytest.skip("Dual TOR device does not support broadcast packet")

untagged_pkt = build_icmp_packet(0)
# Need a tagged packet for set_do_not_care_scapy
Expand Down Expand Up @@ -170,6 +172,8 @@ def test_vlan_tc2_send_tagged(ptfadapter, duthosts, rand_one_dut_hostname, rand_
"""

logger.info("Test case #2 starting ...")
if "dualtor" in tbinfo["topo"]["name"]:
pytest.skip("Dual TOR device does not support broadcast packet")

vlan_ports_list = running_vlan_ports_list(duthosts, rand_one_dut_hostname, rand_selected_dut, tbinfo, ports_list)
for vlan_port in vlan_ports_list:
Expand All @@ -195,6 +199,8 @@ def test_vlan_tc3_send_invalid_vid(ptfadapter, duthosts, rand_one_dut_hostname,
"""

logger.info("Test case #3 starting ...")
if "dualtor" in tbinfo["topo"]["name"]:
pytest.skip("Dual TOR device does not support broadcast packet")

vlan_ports_list = running_vlan_ports_list(duthosts, rand_one_dut_hostname, rand_selected_dut, tbinfo, ports_list)
invalid_tagged_pkt = build_icmp_packet(4095)
Expand Down

0 comments on commit 1fbc90f

Please sign in to comment.