Skip to content

Commit

Permalink
[Vlan] Add barefoot platform to vlan QinQ test case (#3745)
Browse files Browse the repository at this point in the history
Approach
What is the motivation for this PR?
Run test_vlan_tc6_tagged_qinq_switch_on_outer_tag

How did you do it?
How did you verify/test it?
Run test case on t0 topo:
vlan/test_vlan.py::test_vlan_tc6_tagged_qinq_switch_on_outer_tag PASSED

Signed-off-by: Andrii-Yosafat Lozovyi <[email protected]>
  • Loading branch information
AndriiLozovyi authored Jul 20, 2021
1 parent ff76eb9 commit 8f3ae4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/vlan/test_vlan.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ def test_vlan_tc4_tagged_non_broadcast(ptfadapter, vlan_ports_list):
if "Did not receive expected packet on any of ports" in str(detail):
logger.error("Expected packet was not received")
raise

logger.info("One Way Tagged Packet Transmission Works")
logger.info("Tagged packet successfully sent from port {} to port {}".format(src_port[0], dst_port))

Expand Down Expand Up @@ -451,7 +451,7 @@ def test_vlan_tc5_untagged_non_broadcast(ptfadapter, vlan_ports_list, duthost):
src_port = ports_for_test[0]
dst_port = ports_for_test[-1]

src_mac = ptfadapter.dataplane.get_mac(0, src_port[0])
src_mac = ptfadapter.dataplane.get_mac(0, src_port[0])
dst_mac = ptfadapter.dataplane.get_mac(0, dst_port[0])

transmit_untagged_pkt = build_icmp_packet(vlan_id=0, src_mac=src_mac, dst_mac=dst_mac)
Expand Down Expand Up @@ -494,7 +494,7 @@ def test_vlan_tc6_tagged_qinq_switch_on_outer_tag(ptfadapter, vlan_ports_list, d
"""

# Add more supported platforms to the list as they are tested
qinq_switching_supported_platforms = ['mellanox']
qinq_switching_supported_platforms = ['mellanox', 'barefoot']
if duthost.facts["asic_type"] not in qinq_switching_supported_platforms:
pytest.skip("Unsupported platform")

Expand Down

0 comments on commit 8f3ae4f

Please sign in to comment.