diff options
author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2018-08-27 18:48:45 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-11-28 02:22:14 +0100 |
commit | 0eff58207eef2335b092380a0ffb7b12c3e07d91 (patch) | |
tree | ee3f5cddc9e40025cc70226205af1fad3a7e84d2 | |
parent | lib/ospf-topo1-vrf: don't compare headers of show ip route (diff) | |
download | frr-0eff58207eef2335b092380a0ffb7b12c3e07d91.tar.xz frr-0eff58207eef2335b092380a0ffb7b12c3e07d91.zip |
lib: fix `ip4_route_zebra` header removal code
The `strip` function is actually a method of the String object.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
-rw-r--r-- | tests/topotests/lib/topotest.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index d1985b008..ab3e5d34e 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -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:] |