Skip to content
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

[action] [PR:15976] [dhcp_relay] Increase wait time for default route check in dhcp_relay test #16220

Merged
merged 1 commit into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/dhcp_relay/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def dut_dhcp_relay_data(duthosts, rand_one_dut_hostname, ptfhost, tbinfo):
def validate_dut_routes_exist(duthosts, rand_one_dut_hostname, dut_dhcp_relay_data):
"""Fixture to valid a route to each DHCP server exist
"""
py_assert(wait_until(120, 5, 0, check_routes_to_dhcp_server, duthosts[rand_one_dut_hostname],
py_assert(wait_until(360, 5, 0, check_routes_to_dhcp_server, duthosts[rand_one_dut_hostname],
dut_dhcp_relay_data),
"Packets relayed to DHCP server should go through default route via upstream neighbor, but now it's" +
" going through mgmt interface, which means device is in an unhealthy status")
Expand Down
4 changes: 4 additions & 0 deletions tests/dhcp_relay/dhcp_relay_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
def check_routes_to_dhcp_server(duthost, dut_dhcp_relay_data):
"""Validate there is route on DUT to each DHCP server
"""
output = duthost.shell("show ip bgp sum", module_ignore_errors=True)
logger.info("bgp state: {}".format(output["stdout"]))
output = duthost.shell("show int po", module_ignore_errors=True)
logger.info("portchannel state: {}".format(output["stdout"]))
default_gw_ip = dut_dhcp_relay_data[0]['default_gw_ip']
dhcp_servers = set()
for dhcp_relay in dut_dhcp_relay_data:
Expand Down
Loading