From 287c8f43abcd1658cd7ffd6a8072ee489a960d66 Mon Sep 17 00:00:00 2001 From: Jerry Date: Sat, 2 May 2020 15:55:28 +0800 Subject: [PATCH] as -> asn --- scripts/roa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/roa.py b/scripts/roa.py index 67634a1..6e331ac 100755 --- a/scripts/roa.py +++ b/scripts/roa.py @@ -115,7 +115,7 @@ def neonet_route2roa(dirname, is_ipv6=False): get_supernet = lambda s_net: None if not s_net else nettype(s_net, strict=True) roa_entries_key = ("asn", "prefix", "supernet") if fc.get('type').lower() in ('lo', 'subnet'): - asn = str2asn(fc.get('as')) + asn = str2asn(fc.get('asn')) assert asn in ASNS route = f.name.replace(',', '/') supernet = get_supernet(fc.get('supernet'))