]> git.puffer.fish Git - matthieu/frr.git/commitdiff
topotest: show the user that we are waiting
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 6 Dec 2017 17:40:57 +0000 (15:40 -0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:12 +0000 (20:22 -0500)
Add a log message to tell the user that we are waiting for zebra.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
tests/topotests/lib/topotest.py

index 487324880de94d3ecac61087d580c2d77b3b8c83..6bd9cf25a4f88dd6f54d96f4c2b2bbbdce390b0f 100644 (file)
@@ -631,7 +631,7 @@ class Router(Node):
             ))
             self.waitOutput()
             logger.debug('{}: {} zebra started'.format(self, self.routertype))
-            time.sleep(1)
+            sleep(1, '{}: waiting for zebra to start'.format(self.name))
         # Fix Link-Local Addresses
         # Somehow (on Mininet only), Zebra removes the IPv6 Link-Local addresses on start. Fix this
         self.cmd('for i in `ls /sys/class/net/` ; do mac=`cat /sys/class/net/$i/address`; IFS=\':\'; set $mac; unset IFS; ip address add dev $i scope link fe80::$(printf %02x $((0x$1 ^ 2)))$2:${3}ff:fe$4:$5$6/64; done')