]> git.ipfire.org Git - people/ms/libloc.git/commitdiff
importer: Don't import any AS names from Spamhaus
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 2 Mar 2024 09:43:25 +0000 (09:43 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 2 Mar 2024 09:43:25 +0000 (09:43 +0000)
Those are not very human readable and we should usually have a better
source.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/location-importer.in

index 056451fb3b11e6bb9ce7acd0dee7a18440333672..878710d8c8c68fde1710ce13a443493e50be4757 100644 (file)
@@ -1942,20 +1942,6 @@ class CLI(object):
                                                )""", "%s" % asn, name, True,
                                        )
 
-                                       # In case we do not have an name for this AS already, update
-                                       # autnums table accordingly
-                                       self.db.execute("""
-                                               INSERT INTO autnums(
-                                                       number,
-                                                       name,
-                                                       source
-                                               ) VALUES (%s, %s, %s)
-                                               ON CONFLICT (number) DO NOTHING""",
-                                               "%s" % asn,
-                                               as_name,
-                                               name
-                                       )
-
        @staticmethod
        def _parse_bool(block, key):
                val = block.get(key)