-
Notifications
You must be signed in to change notification settings - Fork 738
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 script for null_route_helper #3812
Add test script for null_route_helper #3812
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
assert(send_and_verify_packet(ptfadapter, pkt, exp_pkt, random.choice(ptf_t1_interfaces), rx_port, expected_result)) | ||
|
||
|
||
|
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.
Remove extra empty lines #Closed
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. Thanks
Build ipv4 and ipv6 packets/expected_packets for testing. | ||
""" | ||
pkt = None | ||
exp_pkt = None |
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.
exp_pkt = None
You can remove the init lines? #Closed
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. Thanks
Signed-off-by: bingwang <[email protected]>
470ea4b
to
af2a244
Compare
Signed-off-by: bingwang <[email protected]>
Please hold on merging this PR until |
* Add test script for null_route_helper Signed-off-by: bingwang <[email protected]>
Signed-off-by: bingwang [email protected]
Description of PR
Summary:
PR sonic-net/sonic-utilities#1718 introduced a new helper script
null_route_helper
. This PR is to implement test cases for the new script.Type of change
Back port request
Approach
What is the motivation for this PR?
This PR is to add test cases for
null_route_helper
How did you do it?
null_route_helper
script, and verify if packets are dropped or forwarded as expected.How did you verify/test it?
Verified on SN4600, T0 testbed.
Any platform specific information?
No.
Supported testbed topology if it's a new test case?
Running on T0 topo.
Documentation