]> git.ipfire.org Git - location/libloc.git/commit
location-importer.in: Attempt to provide meaningful AS names if organisation handles...
authorPeter Müller <peter.mueller@ipfire.org>
Mon, 19 Jul 2021 21:34:40 +0000 (21:34 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 20 Jul 2021 12:17:42 +0000 (12:17 +0000)
commit426e0bee1cb64470ce7da1bac417f018bd56b939
treead48f7d6bd062e6878aa867ee32257d4325d1e03
parent10d357f896258e1cbac09493ec7a1cbba2446b41
location-importer.in: Attempt to provide meaningful AS names if organisation handles are missing

A decent amount of autnum objects - especially, but not exclusively in
the APNIC sector - does not contain a link to an organisation handle.

In such cases, this patch is going to use the first description line of
the atunum object in question (if available) as a string for its name.
The overwhelming majority of affected ASNs contains a valuable
information there, so this is almost as good as having an organisation
handle linked to it.

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