mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-11-25 23:20:41 +08:00
scripts/roa.py: extra check for downstream
This commit is contained in:
parent
824ea7accc
commit
092dd8bfe1
1 changed files with 2 additions and 2 deletions
|
@ -75,8 +75,8 @@ def route2roa(dirname, is_ipv6=False):
|
||||||
route = f.name.replace(',', '/')
|
route = f.name.replace(',', '/')
|
||||||
roa_entries.append([asn, nettype(route, strict=True)])
|
roa_entries.append([asn, nettype(route, strict=True)])
|
||||||
elif fc.get('type').startswith('tun'):
|
elif fc.get('type').startswith('tun'):
|
||||||
upstream = fc.get('upstream')
|
assert NODE_TABLE[fc.get('downstream')] # extra check for downstream
|
||||||
asn = NODE_TABLE[upstream]
|
asn = NODE_TABLE[fc.get('upstream')]
|
||||||
assert asn in ASNS
|
assert asn in ASNS
|
||||||
route = f.name.replace(',', '/')
|
route = f.name.replace(',', '/')
|
||||||
roa_entries.append([asn, nettype(route, strict=True)])
|
roa_entries.append([asn, nettype(route, strict=True)])
|
||||||
|
|
Loading…
Reference in a new issue