Skip to content

Increase timeout for sniffing option 82 packets#5686

Merged
ZhaohuiS merged 1 commit intosonic-net:masterfrom
ZhaohuiS:dhcp_relay_sniff_option82
May 20, 2022
Merged

Increase timeout for sniffing option 82 packets#5686
ZhaohuiS merged 1 commit intosonic-net:masterfrom
ZhaohuiS:dhcp_relay_sniff_option82

Conversation

@ZhaohuiS
Copy link
Contributor

Signed-off-by: Zhaohui Sun zhaohuisun@microsoft.com

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012

Approach

What is the motivation for this PR?

test_dhcp_relay.py fails at "Failed: Verifying option 82" sometimes. It means it doesn't sniff any DHCP Relay packet with option 82.

How did you do it?

After debugging, timeout=3 may be too short for waiting relayed discover packets from DUT.
Add timestamp, I found relayed discover packets may arrive at PTF 3s later after starting sniff.
Increase it to 5s to make sure it can capture expected packets.

How did you verify/test it?

run test_dhcp_relay.py

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

Signed-off-by: Zhaohui Sun <zhaohuisun@microsoft.com>
@ZhaohuiS ZhaohuiS requested a review from a team as a code owner May 19, 2022 06:53
@ZhaohuiS ZhaohuiS merged commit a78c746 into sonic-net:master May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants