From: Rafael Zalamena Date: Wed, 6 Dec 2017 17:40:57 +0000 (-0200) Subject: topotest: show the user that we are waiting X-Git-Tag: frr-7.1-dev~151^2~193 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=63038f4b0217243c9cf61e3aadd50e76a363a44b;p=mirror%2Ffrr.git topotest: show the user that we are waiting Add a log message to tell the user that we are waiting for zebra. Signed-off-by: Rafael Zalamena --- diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index 487324880d..6bd9cf25a4 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -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')