]> git.ipfire.org Git - location/location-database.git/commitdiff
Ignore some blocks in the source from AfriNIC
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 30 Jun 2018 14:07:43 +0000 (15:07 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 30 Jun 2018 14:07:43 +0000 (15:07 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tools/base.py

index 3f91595bc184445f8986e6410c66c0a1497b7ebf..119723bddfbfc57da3752b6d71b43aa85392ba25 100644 (file)
@@ -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:")