Skip to content

Comments

[action] [PR:21448] Fix ACL rule creation in packet trimming tests (Broadcom)#22534

Merged
vmittal-msft merged 1 commit intosonic-net:202511from
mssonicbld:cherry/202511/21448
Feb 23, 2026
Merged

[action] [PR:21448] Fix ACL rule creation in packet trimming tests (Broadcom)#22534
vmittal-msft merged 1 commit intosonic-net:202511from
mssonicbld:cherry/202511/21448

Conversation

@mssonicbld
Copy link
Collaborator

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
  • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

Packet trimming tests use acl for verifying that the disable trim action works. We couldn't get this testcase to pass on Broadcom th5. One of the issues was that acl rules weren't being created.

How did you do it?

After inspecting the sairedis logs, it was discovered that it was trying and failing to create a counter for the acl rules the test is trying to create. This is because the action list specified in the configuration does not include a counter, but the orchagent seems to attempt to create one anyways. By adding a counter to the action list we no longer fail to create the ACL rule.

How did you verify/test it?

Confirmed test_acl_action_with_trimming testcase was passing with the change.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

Broadcom SAI will complain if this configuration isn't provided, leading
to no acl rules being created.

Signed-off-by: Ryan Garofano <rgarofano@arista.com>
Signed-off-by: mssonicbld <sonicbld@microsoft.com>
@mssonicbld
Copy link
Collaborator Author

Original PR: #21448

@mssonicbld
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@vmittal-msft vmittal-msft merged commit f0388c5 into sonic-net:202511 Feb 23, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants