-
Notifications
You must be signed in to change notification settings - Fork 753
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] Fix ACL rules are not ready yet when test cases are started in as5835_54t model #2961
Conversation
write to hardware chip already.
/Azurepipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
tests/acl/test_acl.py
Outdated
def check_rule_counters(self, duthost): | ||
logger.info('Wait all rule counters are ready') | ||
|
||
return wait_until(300, 2, self.check_rule_counters_internal, duthost) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
300 seems a bit long, could we set this to something like 30
or 60
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated code to wait for ACL rule counters ready in 60 seconds. Thanks.
@shihhsien-wang Can you address the review comments? Then we can proceed with merging this PR. |
Just updated code for the review comment. Sorry for late reply. |
…as5835_54t model (sonic-net#2961) What is the motivation for this PR? Fix failed test cases in as5835_54t model. How did you do it? Check output of aclshow -a command and ensure that one or more rules are able to displayed and values of counters are not N/A. How did you verify/test it? Run the modified code in as5835_54t model to ensure that the problem is fixed.
Why I did: Changes done as part of #2961 broke the multi-asic platforms. How I did: Made changes done as part of #2961 multi-asic compatible. How I verify: Verified for both multi-asic and single asic platforms. Signed-off-by: Abhishek Dosi <[email protected]>
…as5835_54t model (sonic-net#2961) What is the motivation for this PR? Fix failed test cases in as5835_54t model. How did you do it? Check output of aclshow -a command and ensure that one or more rules are able to displayed and values of counters are not N/A. How did you verify/test it? Run the modified code in as5835_54t model to ensure that the problem is fixed.
Why I did: Changes done as part of sonic-net#2961 broke the multi-asic platforms. How I did: Made changes done as part of sonic-net#2961 multi-asic compatible. How I verify: Verified for both multi-asic and single asic platforms. Signed-off-by: Abhishek Dosi <[email protected]>
…as5835_54t model (sonic-net#2961) What is the motivation for this PR? Fix failed test cases in as5835_54t model. How did you do it? Check output of aclshow -a command and ensure that one or more rules are able to displayed and values of counters are not N/A. How did you verify/test it? Run the modified code in as5835_54t model to ensure that the problem is fixed.
Why I did: Changes done as part of sonic-net#2961 broke the multi-asic platforms. How I did: Made changes done as part of sonic-net#2961 multi-asic compatible. How I verify: Verified for both multi-asic and single asic platforms. Signed-off-by: Abhishek Dosi <[email protected]>
Description of PR
Add check code to ensure ACL rules are already written to hardware chip by check and wait until the output of
aclshow -a
command is OK.Summary:
Fixes the failed test cases in
as5835_54t
model (or other models equipped with Broadcom chip), because of the rules are not set to Broadcom chip yet but the test case is already started to test. In this case, the first few test cases whose patterns liketest_unmatched_blocked
andtest_XXX_dropped
sometimes fail.Type of change
Approach
What is the motivation for this PR?
Fix failed test cases in
as5835_54t
model.How did you do it?
Check output of
aclshow -a
command and ensure that one or more rules are able to displayed and values of counters are notN/A
.How did you verify/test it?
Run the modified code in
as5835_54t
model to ensure that the problem is fixed.Any platform specific information?
Supported testbed topology if it's a new test case?
N/A
Documentation
N/A