From d6c8374307de8fa8ff8fe0e27757d8d5427fc5cd Mon Sep 17 00:00:00 2001 From: Yaqiang Zhu Date: Tue, 6 Dec 2022 22:55:08 +0800 Subject: [PATCH] [mx] Fix test_acl failed on mx topo (#6971) What is the motivation for this PR? Some of test_acl cases failed on mx topo because the mx topology has no port-channel. This PR is to fix that. How did you do it? Modify the method of obtaining upstream neighbors in mx topology How did you verify/test it? Run test_acl on mx topo --- tests/acl/test_acl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/acl/test_acl.py b/tests/acl/test_acl.py index 96de7e319c5..b0edfc304cd 100644 --- a/tests/acl/test_acl.py +++ b/tests/acl/test_acl.py @@ -287,7 +287,7 @@ def setup(duthosts, ptfhost, rand_selected_dut, rand_unselected_dut, tbinfo, ptf if namespace: acl_table_ports[''] += port - if topo in ["t0", "m0", "mx"] or tbinfo["topo"]["name"] in ("t1-lag", "t1-64-lag", "t1-64-lag-clet"): + if topo in ["t0", "m0"] or tbinfo["topo"]["name"] in ("t1-lag", "t1-64-lag", "t1-64-lag-clet"): for k, v in port_channels.iteritems(): acl_table_ports[v['namespace']].append(k) # In multi-asic we need config both in host and namespace.