]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgp-ecmp-topo: use the new sleep function
authorRafael Zalamena <rzalamena@gmail.com>
Mon, 24 Jul 2017 14:55:42 +0000 (11:55 -0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:12 +0000 (20:22 -0500)
tests/topotests/bgp-ecmp-topo1/test_bgp_ecmp_topo1.py

index 0e8bd7b0eab18e9b5d7681b3884c350c6420bc30..15ebf879bfacf2000abd391f5981ab49182fb2ad 100755 (executable)
@@ -29,7 +29,6 @@ test_bgp_ecmp_topo1.py: Test BGP topology with ECMP (Equal Cost MultiPath).
 import os
 import sys
 import pytest
-from time import sleep
 
 # Save the Current Working Directory to find configuration files.
 CWD = os.path.dirname(os.path.realpath(__file__))
@@ -103,8 +102,7 @@ def setup_module(module):
         router.start()
 
     # Starting Hosts and init ExaBGP on each of them
-    logger.info('starting BGP on all {} Peers in 10s'.format(total_ebgp_peers))
-    sleep(10)
+    topotest.sleep(10, 'starting BGP on all {} peers'.format(total_ebgp_peers))
     peer_list = tgen.exabgp_peers()
     for pname, peer in peer_list.iteritems():
         peer_dir = os.path.join(CWD, pname)