From: Michael Tremer Date: Sat, 5 Mar 2022 13:15:36 +0000 (+0000) Subject: importer: Silently ignore any table headers X-Git-Tag: 0.9.12~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=45fa97cd62bee2a8e73e86b39380e32c4fd44607;p=people%2Fms%2Flibloc.git importer: Silently ignore any table headers Signed-off-by: Michael Tremer --- diff --git a/src/python/location-importer.in b/src/python/location-importer.in index 85ee079..0756b5d 100644 --- a/src/python/location-importer.in +++ b/src/python/location-importer.in @@ -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