Skip to content

Commit

Permalink
[common/fixtures/duthost_utils.py] Increase timeout for wait_bgp_sess…
Browse files Browse the repository at this point in the history
…ions for supervisor duts

* Add check to increase timeout to 900 if duthost is a supervisor

Signed-off-by: Javier Tan [email protected]
  • Loading branch information
Javier-Tan committed Jan 10, 2025
1 parent 5f66027 commit d71f44b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/common/fixtures/duthost_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,10 @@ def wait_bgp_sessions(duthost, timeout=120):
A helper function to wait bgp sessions on DUT
"""
bgp_neighbors = duthost.get_bgp_neighbors_per_asic(state="all")
if duthost.is_supervisor_node():
timeout = 900
logging.info("Wait until all bgp sessions are up in {} sec"
.format(timeout))
pytest_assert(
wait_until(timeout, 10, 0, duthost.check_bgp_session_state_all_asics, bgp_neighbors),
"Not all bgp sessions are established after config reload",
Expand Down

0 comments on commit d71f44b

Please sign in to comment.