-
Notifications
You must be signed in to change notification settings - Fork 741
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
Add test case for trap flow counter feature #4456
Conversation
@yxieca could you assign someone to review this? |
tests/copp/test_copp.py
Outdated
trap_type = protocol.lower() | ||
|
||
# wait until the trap counter is enabled | ||
assert wait_until(10, 1, _check_trap_counter_enabled, duthost, trap_type), 'counter is not created for {}'.format(trap_type) |
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.
The wait_until interface has been changed in PR #4516. This function call needs to be updated.
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.
Will do a rebase.
Change-Id: I7f6b77dcb320fce1d9ea0be021486bb6b8e3ec87
Change-Id: I6e8491cf88330e141b5e0d8c809488c10a0be79f
18c2054
to
4a5e316
Compare
/azpw run |
2 similar comments
/azpw run |
/azpw run |
Hi @wangxin , could you help trigger the build again? |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Hi @wangxin - could you please approve the PR |
@wangxin, this feature is not yet merged into master. sonic-net/SONiC#858 |
Approach What is the motivation for this PR? Enable test_copp on t0, eliminate test gap #4588 How did you do it? Modify prepare logic to make it suitable to both t0 and t1 topologies. Install another required package. How did you verify/test it? Run it on physical testbeds, including: 3 t0 testbeds with different platforms 1 t1 testbed to make sure it doesn't influence existing testbed 1 t1 backend testbed All of them passed the test_policer and test_no_policer test functions, but the new test function test_counter brought by #4456 raised errors due to the command mismatch of the bin file, it should be the issue of the new test case so we can ignore it for now. Supported testbed topology if it's a new test case? t0, t0-64, t0-52, t0-116 Co-authored-by: Jianquan Ye <jianquanye@microsoft.com>
This reverts commit c630ea1.
This reverts commit c630ea1 Reverts #4456 This feature has not yet been reviewed sonic-net/SONiC#858 Affecting nighty run results because of this new testcase without feature support
What is the motivation for this PR? Add test case for trap flow counter feature. How did you do it? This new test case is verifying the packet send number and packet rate. Test flow is like: * Enable and clear trap flow counter * Send packets via ptf * Verify the send number equals to the counter value, and the send rate is close to counter value How did you verify/test it? Manually run the test Any platform specific information? Any platform that support trap flow counter
Approach What is the motivation for this PR? Enable test_copp on t0, eliminate test gap sonic-net#4588 How did you do it? Modify prepare logic to make it suitable to both t0 and t1 topologies. Install another required package. How did you verify/test it? Run it on physical testbeds, including: 3 t0 testbeds with different platforms 1 t1 testbed to make sure it doesn't influence existing testbed 1 t1 backend testbed All of them passed the test_policer and test_no_policer test functions, but the new test function test_counter brought by sonic-net#4456 raised errors due to the command mismatch of the bin file, it should be the issue of the new test case so we can ignore it for now. Supported testbed topology if it's a new test case? t0, t0-64, t0-52, t0-116 Co-authored-by: Jianquan Ye <jianquanye@microsoft.com>
…sonic-net#4747) This reverts commit c630ea1 Reverts sonic-net#4456 This feature has not yet been reviewed sonic-net/SONiC#858 Affecting nighty run results because of this new testcase without feature support
Change-Id: I7f6b77dcb320fce1d9ea0be021486bb6b8e3ec87
Description of PR
Summary:
Add test case for trap flow counter feature
Type of change
Back port request
Approach
What is the motivation for this PR?
Add test case for trap flow counter feature.
How did you do it?
This new test case is verifying the packet send number and packet rate. Test flow is like:
How did you verify/test it?
Manually run the test
Any platform specific information?
Any platform that support trap flow coutner
Supported testbed topology if it's a new test case?
ptf32/ptf64
Documentation