1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-12-25 13:49:23 +08:00

as -> asn

This commit is contained in:
JerryXiao 2020-05-02 15:55:28 +08:00
parent 5ef859bf24
commit 287c8f43ab
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -115,7 +115,7 @@ def neonet_route2roa(dirname, is_ipv6=False):
get_supernet = lambda s_net: None if not s_net else nettype(s_net, strict=True)
roa_entries_key = ("asn", "prefix", "supernet")
if fc.get('type').lower() in ('lo', 'subnet'):
asn = str2asn(fc.get('as'))
asn = str2asn(fc.get('asn'))
assert asn in ASNS
route = f.name.replace(',', '/')
supernet = get_supernet(fc.get('supernet'))