1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00

handle bogon asns (#419)

This commit is contained in:
Stefan Pratter
2019-02-07 08:00:22 +00:00
parent a62a546a2c
commit a14556f07b
8 changed files with 180 additions and 30 deletions

View File

@ -41,6 +41,8 @@ def setup_module(module):
def get_asn(self, asn):
if asn in ASN_RANGE_OVERRIDE:
return pdbinet.RdapAsn(self.override_result)
elif pdbinet.asn_is_bogon(asn):
return RdapLookup_get_asn(self, asn)
else:
raise pdbinet.RdapNotFoundError()