From 3af70f3627230421a83e91c85fe1e4b5a87e3819 Mon Sep 17 00:00:00 2001 From: Jerry Date: Sat, 19 Sep 2020 13:18:14 +0800 Subject: [PATCH] [skip ci] skip all loopback checks --- scripts/roa.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/roa.py b/scripts/roa.py index 78e3ed8..9a96961 100755 --- a/scripts/roa.py +++ b/scripts/roa.py @@ -120,6 +120,8 @@ def route_to_roa(asn_table: dict): for net1, net2 in combinations( sorted(entities, key=lambda net: net["prefix"].prefixlen), 2 ): + if net1["type"] == net2["type"] == "loopback": + continue if not net1["prefix"].overlaps(net2["prefix"]): continue entity_from_net = lambda net: asn_table.get(net["asn"])["owner"]