From cf6f84a43eb512669af5644f01fed62c3f215a19 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 30 Jun 2018 15:07:43 +0100 Subject: [PATCH] Ignore some blocks in the source from AfriNIC Signed-off-by: Michael Tremer --- tools/base.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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:") -- 2.47.3