1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-12-25 14:29:24 +08:00

maybe we should not allow empty netname

This commit is contained in:
JerryXiao 2020-05-02 20:44:02 +08:00
parent 0c3d4bf9a8
commit cbc0f4ceea
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -133,6 +133,7 @@ def neonet_route2roa(dirname, is_ipv6=False):
route = f.name.replace(',', '/') route = f.name.replace(',', '/')
supernet = get_supernet(fc.get('supernet')) supernet = get_supernet(fc.get('supernet'))
netname = fc.get('name') netname = fc.get('name')
assert netname
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().startswith('tun'): elif fc.get('type').lower().startswith('tun'):
assert NODE_TABLE[fc.get('downstream')] # extra check for downstream assert NODE_TABLE[fc.get('downstream')] # extra check for downstream