mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-11-26 00:40:42 +08:00
also check ptp nodes
This commit is contained in:
parent
cbc0f4ceea
commit
cab73cde07
3 changed files with 6 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
TYPE="PTP"
|
||||
PROTO="WireGuard"
|
||||
UPSTREAM="MagicNeko-JP3"
|
||||
UPSTREAM="MagicNeko-JP03"
|
||||
DOWNSTREAM="santost12"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
TYPE="PTP"
|
||||
PROTO="WireGuard"
|
||||
UPSTREAM="Icecat-Explosion"
|
||||
UPSTREAM="MagicNeko-HK01"
|
||||
DOWNSTREAM="SUNNET"
|
||||
|
|
|
@ -143,8 +143,11 @@ def neonet_route2roa(dirname, is_ipv6=False):
|
|||
supernet = get_supernet(fc.get('supernet'))
|
||||
netname = "%s-%s" % (fc.get('type'), route)
|
||||
roa_entries.append(dict(zip(roa_entries_key, [asn, nettype(route, strict=True), supernet, netname])))
|
||||
elif fc.get('type').lower() == 'ptp':
|
||||
assert NODE_TABLE[fc.get('upstream')] # extra check for upstream
|
||||
assert NODE_TABLE[fc.get('downstream')] # extra check for downstream
|
||||
else:
|
||||
assert fc.get('type').lower() in ('ptp',)
|
||||
raise AssertionError
|
||||
except Exception:
|
||||
print("[!] Error while processing file", f)
|
||||
raise
|
||||
|
|
Loading…
Reference in a new issue