mirror of
https://github.com/NeoCloud/NeoNetwork
synced 2024-11-22 18:40:41 +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"
|
TYPE="PTP"
|
||||||
PROTO="WireGuard"
|
PROTO="WireGuard"
|
||||||
UPSTREAM="MagicNeko-JP3"
|
UPSTREAM="MagicNeko-JP03"
|
||||||
DOWNSTREAM="santost12"
|
DOWNSTREAM="santost12"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
TYPE="PTP"
|
TYPE="PTP"
|
||||||
PROTO="WireGuard"
|
PROTO="WireGuard"
|
||||||
UPSTREAM="Icecat-Explosion"
|
UPSTREAM="MagicNeko-HK01"
|
||||||
DOWNSTREAM="SUNNET"
|
DOWNSTREAM="SUNNET"
|
||||||
|
|
|
@ -143,8 +143,11 @@ def neonet_route2roa(dirname, is_ipv6=False):
|
||||||
supernet = get_supernet(fc.get('supernet'))
|
supernet = get_supernet(fc.get('supernet'))
|
||||||
netname = "%s-%s" % (fc.get('type'), route)
|
netname = "%s-%s" % (fc.get('type'), route)
|
||||||
roa_entries.append(dict(zip(roa_entries_key, [asn, nettype(route, strict=True), supernet, netname])))
|
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:
|
else:
|
||||||
assert fc.get('type').lower() in ('ptp',)
|
raise AssertionError
|
||||||
except Exception:
|
except Exception:
|
||||||
print("[!] Error while processing file", f)
|
print("[!] Error while processing file", f)
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in a new issue