Skip to content

Commit 9daf6d1

Browse files
Fix test failure on static route test
Change-Id: I7cdd6151d5fdf258f6d04ca1e0c897488900de97
1 parent 589528d commit 9daf6d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/route/test_static_route.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def get_nexthops(duthost, tbinfo, ipv6=False, count=1):
234234
return prefix_len, [nexthop_addrs[_] for _ in indices], [nexthop_devs[_] for _ in indices], [nexthop_interfaces[_] for _ in indices]
235235

236236

237-
def test_static_route(rand_selected_dut, ptfadapter, ptfhost, tbinfo, toggle_all_simulator_ports_to_rand_selected_tor_m):
237+
def test_static_route(rand_selected_dut, ptfadapter, ptfhost, tbinfo, toggle_all_simulator_ports_to_rand_selected_tor_m, is_route_flow_counter_supported):
238238
duthost = rand_selected_dut
239239
skip_201911_and_older(duthost)
240240
prefix_len, nexthop_addrs, nexthop_devs, nexthop_interfaces = get_nexthops(duthost, tbinfo)
@@ -243,15 +243,15 @@ def test_static_route(rand_selected_dut, ptfadapter, ptfhost, tbinfo, toggle_all
243243

244244

245245
@pytest.mark.disable_loganalyzer
246-
def test_static_route_ecmp(rand_selected_dut, ptfadapter, ptfhost, tbinfo, toggle_all_simulator_ports_to_rand_selected_tor_m):
246+
def test_static_route_ecmp(rand_selected_dut, ptfadapter, ptfhost, tbinfo, toggle_all_simulator_ports_to_rand_selected_tor_m, is_route_flow_counter_supported):
247247
duthost = rand_selected_dut
248248
skip_201911_and_older(duthost)
249249
prefix_len, nexthop_addrs, nexthop_devs, nexthop_interfaces = get_nexthops(duthost, tbinfo, count=3)
250250
run_static_route_test(duthost, ptfadapter, ptfhost, tbinfo, "2.2.2.0/24",
251251
nexthop_addrs, prefix_len, nexthop_devs, nexthop_interfaces, is_route_flow_counter_supported, config_reload_test=True)
252252

253253

254-
def test_static_route_ipv6(rand_selected_dut, ptfadapter, ptfhost, tbinfo, toggle_all_simulator_ports_to_rand_selected_tor_m):
254+
def test_static_route_ipv6(rand_selected_dut, ptfadapter, ptfhost, tbinfo, toggle_all_simulator_ports_to_rand_selected_tor_m, is_route_flow_counter_supported):
255255
duthost = rand_selected_dut
256256
skip_201911_and_older(duthost)
257257
prefix_len, nexthop_addrs, nexthop_devs, nexthop_interfaces = get_nexthops(duthost, tbinfo, ipv6=True)
@@ -260,7 +260,7 @@ def test_static_route_ipv6(rand_selected_dut, ptfadapter, ptfhost, tbinfo, toggl
260260

261261

262262
@pytest.mark.disable_loganalyzer
263-
def test_static_route_ecmp_ipv6(rand_selected_dut, ptfadapter, ptfhost, tbinfo, toggle_all_simulator_ports_to_rand_selected_tor_m):
263+
def test_static_route_ecmp_ipv6(rand_selected_dut, ptfadapter, ptfhost, tbinfo, toggle_all_simulator_ports_to_rand_selected_tor_m, is_route_flow_counter_supported):
264264
duthost = rand_selected_dut
265265
skip_201911_and_older(duthost)
266266
prefix_len, nexthop_addrs, nexthop_devs, nexthop_interfaces = get_nexthops(duthost, tbinfo, ipv6=True, count=3)

0 commit comments

Comments
 (0)