Skip to content
Permalink
Browse files

Merge pull request #126 from opensourcerouting/zebraroutefun-fix

lib: fix `ip4_route_zebra` header removal code
  • Loading branch information...
rzalamena committed Aug 27, 2018
2 parents 841e597 + 44b9e76 commit b081543bb451cf1e13d3979ae85127de3f7c8c70
Showing with 1 addition and 2 deletions.
  1. +1 −2 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:]

0 comments on commit b081543

Please sign in to comment.
You can’t perform that action at this time.