From d7d1143d96006feda6a6535ca29ce3f5527d3522 Mon Sep 17 00:00:00 2001 From: Longxiang Lyu <35479537+lolyu@users.noreply.github.com> Date: Fri, 17 Jan 2025 00:52:59 +0800 Subject: [PATCH] [dualtor] Fix `testFdbMacLearning` (#16549) Signed-off-by: Longxiang Lyu --- tests/fdb/test_fdb_mac_learning.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/fdb/test_fdb_mac_learning.py b/tests/fdb/test_fdb_mac_learning.py index 0244f65f7dd..6753748c9f9 100644 --- a/tests/fdb/test_fdb_mac_learning.py +++ b/tests/fdb/test_fdb_mac_learning.py @@ -9,6 +9,8 @@ from tests.ptf_runner import ptf_runner from .utils import fdb_table_has_dummy_mac_for_interface from tests.common.helpers.ptf_tests_helper import upstream_links # noqa F401 +from tests.common.dualtor.mux_simulator_control import toggle_all_simulator_ports_to_rand_selected_tor_m # noqa F401 + pytestmark = [ pytest.mark.topology('t0') @@ -233,7 +235,8 @@ def bringup_uplink_ports(self, duthost, upstream_links): # noqa F811 duthost.shell("sudo config interface startup {}".format(uplink_intf)) def testFdbMacLearning(self, ptfadapter, duthosts, rand_one_dut_hostname, ptfhost, tbinfo, request, prepare_test, - upstream_links, setup_standby_ports_on_rand_unselected_tor_unconditionally): # noqa F811 + upstream_links, setup_standby_ports_on_rand_unselected_tor_unconditionally, # noqa F811 + toggle_all_simulator_ports_to_rand_selected_tor_m): # noqa F811 """ TestFdbMacLearning verifies stale MAC entries are not present in MAC table after doing sonic-clear fdb all -shut down all ports