-
Notifications
You must be signed in to change notification settings - Fork 532
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
Conversation
/azpw run Azure.sonic-swss |
/AzurePipelines run Azure.sonic-swss |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw run Azure.sonic-swss |
/AzurePipelines run Azure.sonic-swss |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw run Azure.sonic-swss |
/AzurePipelines run Azure.sonic-swss |
Azure Pipelines successfully started running 1 pipeline(s). |
@prsunny could you please help to signoff? |
@dgsudharsan unrelated to this PR can you please check if we have such problem with other CRM counters? @volodymyrsamotiy FYI |
This commit could not be cleanly cherry-picked to 202012. Please submit another PR. |
* [ACL]Avoid incrementing crm count when ACL rule create fails
…et#2238) * [ACL]Avoid incrementing crm count when ACL rule create fails
…et#2238) * [ACL]Avoid incrementing crm count when ACL rule create fails
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