fix dhcp relay test failure with backgound traffic#6809
fix dhcp relay test failure with backgound traffic#6809jcaiMR merged 3 commits intosonic-net:masterfrom jcaiMR:dev/fix_dhcp_test
Conversation
|
The pre-commit check detected issues in the files touched by this pull request. For old issues, it is not mandatory to fix them because they were not caused by this change. It is unfair to blame Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
|
@jcaiMR There are conflicts merging this PR to 202012 branch. Can you create a separate PR to 202012 branch to include this change? |
* fix route flap script issue on dual tor * fix dhcp relay unstable issue with backgound dhcp packets
Description of PR
Fix dhcp relay test failure when there is background(noise) dhcp packets on dhcp server side during test.
Summary:
Fixes # (issue)
In original test script, sniffer call back function destination ip check is not right, it only accept the first dhcp server ip.
If configure multiple dhcp servers, actually only one packet to server will match sniffer condition. So when there is background/noise packets, it's easy to loss the relay packets send from DUT and cause test failure.
Type of change
Back port request
Approach
What is the motivation for this PR?
Improve test stability
How did you do it?
Define strict filter handler to keep the noise packets impact to minimal.
How did you verify/test it?
test on dut.