Skip to content
Merged
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
7 changes: 6 additions & 1 deletion tests/common/plugins/sanity_check/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,12 @@ def _check_default_route(version, dut):
def _restart_bgp(dut):
# Restart BGP service
try:
dut.command("systemctl restart bgp.service")
if dut.is_multi_asic:
with SafeThreadPoolExecutor(max_workers=8) as executor:
for asic in range(dut.num_asics()):
executor.submit(dut.command, f"systemctl restart bgp@{asic}.service")
else:
dut.command("systemctl restart bgp.service")
except RunAnsibleModuleFail as e:
logger.error("Failed to restart BGP service on %s: %s" % (dut.hostname, str(e)))
return False
Expand Down
Loading