mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-11-22 18:00:41 +08:00
as -> asn
This commit is contained in:
parent
5ef859bf24
commit
287c8f43ab
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
get_supernet = lambda s_net: None if not s_net else nettype(s_net, strict=True)
|
||||||
roa_entries_key = ("asn", "prefix", "supernet")
|
roa_entries_key = ("asn", "prefix", "supernet")
|
||||||
if fc.get('type').lower() in ('lo', 'subnet'):
|
if fc.get('type').lower() in ('lo', 'subnet'):
|
||||||
asn = str2asn(fc.get('as'))
|
asn = str2asn(fc.get('asn'))
|
||||||
assert asn in ASNS
|
assert asn in ASNS
|
||||||
route = f.name.replace(',', '/')
|
route = f.name.replace(',', '/')
|
||||||
supernet = get_supernet(fc.get('supernet'))
|
supernet = get_supernet(fc.get('supernet'))
|
||||||
|
|
Loading…
Reference in a new issue