From 092dd8bfe13cc09019d1ac065f5ec924c0f7919e Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 1 May 2020 18:17:56 +0800 Subject: [PATCH] scripts/roa.py: extra check for downstream --- scripts/roa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/roa.py b/scripts/roa.py index 1870472..e465a06 100755 --- a/scripts/roa.py +++ b/scripts/roa.py @@ -75,8 +75,8 @@ def route2roa(dirname, is_ipv6=False): route = f.name.replace(',', '/') roa_entries.append([asn, nettype(route, strict=True)]) elif fc.get('type').startswith('tun'): - upstream = fc.get('upstream') - asn = NODE_TABLE[upstream] + assert NODE_TABLE[fc.get('downstream')] # extra check for downstream + asn = NODE_TABLE[fc.get('upstream')] assert asn in ASNS route = f.name.replace(',', '/') roa_entries.append([asn, nettype(route, strict=True)])