Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ACL]Avoid incrementing crm count when ACL rule create fails #2238

Merged
merged 2 commits into from
Apr 25, 2022

Conversation

dgsudharsan
Copy link
Collaborator

@dgsudharsan dgsudharsan commented Apr 22, 2022

What I did
Avoid increment CRM counter when ACL rule creation fails. In existing code there is no return statement after failure during ACL rule creation which results in CRM getting incremented. Since the ACL rule recreation is retried this counter increments in a loop.

Why I did it
Added return statement in case of a failure.

How I verified it
Existing UT should verify the changes

Details if related

@dgsudharsan
Copy link
Collaborator Author

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dgsudharsan
Copy link
Collaborator Author

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dgsudharsan
Copy link
Collaborator Author

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

@prsunny could you please help to signoff?

@liat-grozovik
Copy link
Collaborator

@dgsudharsan unrelated to this PR can you please check if we have such problem with other CRM counters? @volodymyrsamotiy FYI

@prsunny prsunny merged commit 3d3364f into sonic-net:master Apr 25, 2022
@qiluo-msft
Copy link
Contributor

This commit could not be cleanly cherry-picked to 202012. Please submit another PR.

judyjoseph pushed a commit that referenced this pull request May 2, 2022
* [ACL]Avoid incrementing crm count when ACL rule create fails
dgsudharsan added a commit to dgsudharsan/sonic-swss that referenced this pull request May 4, 2022
…et#2238)

* [ACL]Avoid incrementing crm count when ACL rule create fails
prsunny pushed a commit that referenced this pull request May 5, 2022
…2256)

* [ACL]Avoid incrementing crm count when ACL rule create fails
preetham-singh pushed a commit to preetham-singh/sonic-swss that referenced this pull request Aug 6, 2022
…et#2238)

* [ACL]Avoid incrementing crm count when ACL rule create fails
@dgsudharsan dgsudharsan deleted the crm_acl_fix branch March 9, 2023 02:01
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.

6 participants