]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf: add some log calls to show activity
authorRafael Zalamena <rzalamena@gmail.com>
Thu, 29 Jun 2017 21:00:38 +0000 (18:00 -0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:12 +0000 (20:22 -0500)
Brings the OSPF test closer to other topotest tests.

tests/topotests/ospf-topo1/test_ospf_topo1.py

index 58a773b21851933aac549a0162b9229b66c28484..b801677af54d6b660c806496919c88b85d486bcc 100755 (executable)
@@ -122,6 +122,8 @@ def test_ospf_convergence():
     for rnum in range(1, 5):
         router = 'r{}'.format(rnum)
 
+        logger.info('Waiting for router "%s" convergence', router)
+
         # Load expected results from the command
         reffile = os.path.join(CWD, '{}/ospfroute.txt'.format(router))
         expected = open(reffile).read()
@@ -138,6 +140,7 @@ def test_ospf_json():
 
     for rnum in range(1, 5):
         router = tgen.gears['r{}'.format(rnum)]
+        logger.info('Comparing router "%s" "show ip ospf json" output', router.name)
         expected = {
             'routerId': '10.0.255.{}'.format(rnum),
             'tosRoutesOnly': True,
@@ -212,7 +215,7 @@ def test_ospf_link_down():
     # Expect convergence on all routers
     for rnum in range(1, 5):
         router = 'r{}'.format(rnum)
-
+        logger.info('Waiting for router "%s" convergence after link failure', router)
         # Load expected results from the command
         reffile = os.path.join(CWD, '{}/ospfroute_down.txt'.format(router))
         expected = open(reffile).read()