From cbc0f4ceeaf2f69df9055663689c71d8a99ffb3d Mon Sep 17 00:00:00 2001 From: Jerry Date: Sat, 2 May 2020 20:44:02 +0800 Subject: [PATCH] maybe we should not allow empty netname --- scripts/roa.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/roa.py b/scripts/roa.py index 6ab9884..ba067db 100755 --- a/scripts/roa.py +++ b/scripts/roa.py @@ -133,6 +133,7 @@ def neonet_route2roa(dirname, is_ipv6=False): route = f.name.replace(',', '/') supernet = get_supernet(fc.get('supernet')) netname = fc.get('name') + assert netname roa_entries.append(dict(zip(roa_entries_key, [asn, nettype(route, strict=True), supernet, netname]))) elif fc.get('type').lower().startswith('tun'): assert NODE_TABLE[fc.get('downstream')] # extra check for downstream