]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: fix `ip4_route_zebra` header removal code
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Mon, 27 Aug 2018 16:48:45 +0000 (13:48 -0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:14 +0000 (20:22 -0500)
The `strip` function is actually a method of the String object.

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

index d1985b008e047395c944ed62c41fb60cb2422f52..ab3e5d34e0f655607ee4df812187d03734d67372 100644 (file)
@@ -428,8 +428,7 @@ def ip4_route_zebra(node, vrf_name=None):
 
     lines = output.splitlines()
     header_found = False
-    while lines and (not strip(lines[0])
-                        or not header_found):
+    while lines and (not lines[0].strip() or not header_found):
         if '> - selected route' in lines[0]:
             header_found = True
         lines = lines[1:]