From: Michael Tremer Date: Sat, 30 Jun 2018 14:07:43 +0000 (+0100) Subject: Ignore some blocks in the source from AfriNIC X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf6f84a43eb512669af5644f01fed62c3f215a19;p=location%2Flocation-database.git Ignore some blocks in the source from AfriNIC Signed-off-by: Michael Tremer --- diff --git a/tools/base.py b/tools/base.py index 3f91595..119723b 100644 --- a/tools/base.py +++ b/tools/base.py @@ -248,6 +248,30 @@ class RIRParser(object): elif line.startswith("mntner:"): return + # as-block (ignored) + elif line.startswith("as-block:"): + return + + # as-set (ignored) + elif line.startswith("as-set:"): + return + + # route-set (ignored) + elif line.startswith("route-set:"): + return + + # role (ignored) + elif line.startswith("role:"): + return + + # key-cert (ignored) + elif line.startswith("key-cert:"): + return + + # irt (ignored) + elif line.startswith("irt:"): + return + # Log any unknown blocks else: logging.warning("Unknown block:")