Skip to content

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

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

[action] [PR:9054] Leave 1 ACL rule in test_crm.py::test_acl_entry#9272
mssonicbld merged 1 commit intosonic-net:202305from
mssonicbld:cherry/202305/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
Copy link
Copy Markdown
Collaborator Author

/azp run Azure.sonic-mgmt

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit bc89e3e into sonic-net:202305 Aug 5, 2023
@mssonicbld mssonicbld deleted the cherry/202305/9054 branch February 4, 2024 09:25
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