Skip to content

Commit 5aee674

Browse files
cleanup
1 parent 57dfa3b commit 5aee674

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/bgp/test_ipv6_bgp_scale.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,14 @@ def _restore(duthost, connection_type, shutdown_connections, shutdown_all_connec
367367
if connection_type == 'ports':
368368
logger.info(f"Recover interfaces {shutdown_connections} after failure")
369369
duthost.no_shutdown_multiple(shutdown_connections)
370+
elif connection_type == 'bgp_sessions':
371+
if shutdown_all_connections:
372+
logger.info("Recover all BGP sessions after failure")
373+
duthost.shell("sudo config bgp startup all")
374+
else:
375+
for session in shutdown_connections:
376+
logger.info(f"Recover BGP session {session} after failure")
377+
duthost.shell(f"sudo config bgp startup neighbor {session}")
370378

371379

372380
def check_bgp_routes_converged(duthost, expected_routes, shutdown_connections=None, connection_type='none',

0 commit comments

Comments
 (0)