Commit b767db8d authored by Michael Tremer's avatar Michael Tremer

importer: Skip empty lines

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 45fa97cd
......@@ -988,12 +988,18 @@ class CLI(object):
for line in self._bird_cmd(server, "show route"):
m = route.match(line)
if not m:
# Skip empty lines
if not line:
pass
# Ignore any header lines with the name of the routing table
if line.startswith(b"Table"):
continue
elif line.startswith(b"Table"):
pass
# Log anything else
log.debug("Could not parse line: %s" % line.decode())
else:
log.debug("Could not parse line: %s" % line.decode())
continue
# Fetch the extracted network and ASN
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment