]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/python/location-importer.in
importer: Silently ignore any table headers
[people/ms/libloc.git] / src / python / location-importer.in
index 85ee07987dcccf4312bc19f75624a073c360b31a..0756b5d0b6013df29c70b58c077083dc5589a279 100644 (file)
@@ -988,6 +988,11 @@ class CLI(object):
                for line in self._bird_cmd(server, "show route"):
                        m = route.match(line)
                        if not m:
+                               # Ignore any header lines with the name of the routing table
+                               if line.startswith(b"Table"):
+                                       continue
+
+                               # Log anything else
                                log.debug("Could not parse line: %s" % line.decode())
                                continue