]> git.ipfire.org Git - location/libloc.git/commitdiff
location-importer: AS names starting with "DNIC" actually are valid
authorPeter Müller <peter.mueller@ipfire.org>
Sun, 5 Jun 2022 09:25:45 +0000 (09:25 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 Jul 2022 13:57:55 +0000 (13:57 +0000)
These are all assigned to the US Department of Defense.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/location-importer.in

index bde92ce2fa0b850cfcca8d7f42d831c5a9f36ddc..083acb6ee63b4e9fda2d8f74ad6ea9a145430c53 100644 (file)
@@ -894,7 +894,7 @@ class CLI(object):
                                        continue
 
                                # Skip any AS name that appears to be a placeholder for a different RIR or entity...
-                               if re.match(r"^(ASN-BLK|)(AFCONC|AFRINIC|APNIC|ASNBLK|DNIC|LACNIC|RIPE|IANA)(?:\d?$|\-)", name):
+                               if re.match(r"^(ASN-BLK|)(AFCONC|AFRINIC|APNIC|ASNBLK|LACNIC|RIPE|IANA)(?:\d?$|\-)", name):
                                        continue
 
                                # Bail out in case the AS name contains anything we do not expect here...