Skip to content

Commit bf29dc5

Browse files
yaqiangzmssonicbld
authored andcommitted
[acl] Fix test_stress_acl failed in mx (sonic-net#15144)
What is the motivation for this PR? MX failed to fetch acl port due to DATAACL table in running config is removed by this PR: sonic-net#11250 How did you do it? Fetch acl port from mg_facts How did you verify/test it? Run test
1 parent 1c71561 commit bf29dc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/acl/test_stress_acl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def prepare_test_file(rand_selected_dut):
9292
def prepare_test_port(rand_selected_dut, tbinfo):
9393
mg_facts = rand_selected_dut.get_extended_minigraph_facts(tbinfo)
9494
if tbinfo["topo"]["type"] == "mx":
95-
dut_port = rand_selected_dut.acl_facts()["ansible_facts"]["ansible_acl_facts"]["DATAACL"]["ports"][0]
95+
dut_port = mg_facts["minigraph_acls"]["DataAcl"][0]
9696
else:
9797
dut_port = list(mg_facts['minigraph_portchannels'].keys())[0]
9898
if not dut_port:

0 commit comments

Comments
 (0)