Skip to content

[action] [PR:9054] Leave 1 ACL rule in test_crm.py::test_acl_entry#9271

Merged
mssonicbld merged 1 commit intosonic-net:202205from
mssonicbld:cherry/202205/9054
Aug 4, 2023
Merged

[action] [PR:9054] Leave 1 ACL rule in test_crm.py::test_acl_entry#9271
mssonicbld merged 1 commit intosonic-net:202205from
mssonicbld:cherry/202205/9054

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

Some platforms (like broadcom-dnx) allocate ACL banks dynamically so if there are no ACL rules it returns a NULL value for CRM purposes. So leave 1 ACL rule when comparing the returned used/available CRM values.

Also on broadcom-dnx an ACL entry is used per bind point so account for that when calculating the expected available acl entries.

Summary:
Fixes #8812

Type of change

  • Test case(new/improvement)

Back port request

  • 202205
  • 202305

Some platforms (like broadcom-dnx) allocate ACL banks dynamically so if there are no ACL rules it returns a NULL value for CRM purposes. So leave 1 ACL rule when comparing the returned used/available CRM values.

Also on broadcom-dnx an ACL entry is used per bind point so account for that when calculating the expected available acl entries.

Summary:
Fixes sonic-net#8812

Type of change
 Test case(new/improvement)
Back port request
 202205
 202305
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: #9054

@mssonicbld mssonicbld merged commit 6a2c0b1 into sonic-net:202205 Aug 4, 2023
@mssonicbld mssonicbld deleted the cherry/202205/9054 branch February 4, 2024 09:04
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.

2 participants