mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 15:43:55 +00:00
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>
This commit is contained in:
parent
41077aa191
commit
0eff58207e
@ -428,8 +428,7 @@ def ip4_route_zebra(node, vrf_name=None):
|
|||||||
|
|
||||||
lines = output.splitlines()
|
lines = output.splitlines()
|
||||||
header_found = False
|
header_found = False
|
||||||
while lines and (not strip(lines[0])
|
while lines and (not lines[0].strip() or not header_found):
|
||||||
or not header_found):
|
|
||||||
if '> - selected route' in lines[0]:
|
if '> - selected route' in lines[0]:
|
||||||
header_found = True
|
header_found = True
|
||||||
lines = lines[1:]
|
lines = lines[1:]
|
||||||
|
Loading…
Reference in New Issue
Block a user