From fb965e86c1229eb50311923247ad16085fc03430 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Sun, 5 Jun 2022 09:25:45 +0000 Subject: [PATCH] location-importer: AS names starting with "DNIC" actually are valid MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit These are all assigned to the US Department of Defense. Signed-off-by: Peter Müller Signed-off-by: Michael Tremer --- src/scripts/location-importer.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/location-importer.in b/src/scripts/location-importer.in index bde92ce..083acb6 100644 --- a/src/scripts/location-importer.in +++ b/src/scripts/location-importer.in @@ -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... -- 2.39.5