Skip to content

Commit a0f6657

Browse files
authored
[mx] Fix test_acl failed on mx topo (#6971) (#6983)
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
1 parent 2cb2e85 commit a0f6657

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/acl/test_acl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def setup(duthosts, ptfhost, rand_selected_dut, rand_unselected_dut, tbinfo, ptf
288288
if namespace:
289289
acl_table_ports[''] += port
290290

291-
if topo in ["t0", "m0", "mx"] or tbinfo["topo"]["name"] in ("t1-lag", "t1-64-lag", "t1-64-lag-clet"):
291+
if topo in ["t0", "m0"] or tbinfo["topo"]["name"] in ("t1-lag", "t1-64-lag", "t1-64-lag-clet"):
292292
for k, v in port_channels.iteritems():
293293
acl_table_ports[v['namespace']].append(k)
294294
# In multi-asic we need config both in host and namespace.

0 commit comments

Comments
 (0)