Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
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