Skip to content

Commit 0aacb1b

Browse files
authored
Check dualtor in setup_uplink fixture (#7368)
1 parent 9cdc4fc commit 0aacb1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/dualtor/test_ipinip.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ def setup_uplink(rand_selected_dut, tbinfo):
181181
1. Only keep 1 uplink up. Shutdown others to force the bounced back traffic is egressed from monitor port of mirror session
182182
2. If there are more than 1 member in the LAG, update the LAG to have only one member
183183
"""
184+
pytest_require("dualtor" in tbinfo['topo']['name'], "Only run on dualtor testbed")
184185
mg_facts = rand_selected_dut.get_extended_minigraph_facts(tbinfo)
185186
portchannels = mg_facts['minigraph_portchannels'].keys()
186187
up_portchannel = random.choice(portchannels)
@@ -245,7 +246,6 @@ def test_encap_with_mirror_session(rand_selected_dut, rand_selected_interface, p
245246
The issue can happen if the bounced back packets egressed from the monitor port of mirror session
246247
Find more details in CSP CS00012263713.
247248
"""
248-
pytest_require("dualtor" in tbinfo['topo']['name'], "Only run on dualtor testbed")
249249
# Since we have only 1 uplink, the source port is also the dest port
250250
src_port_id = setup_mirror_session
251251
_, server_ip = rand_selected_interface

0 commit comments

Comments
 (0)