1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-12-26 12:19:23 +08:00

[skip ci] skip all loopback checks

This commit is contained in:
JerryXiao 2020-09-19 13:18:14 +08:00
parent a35b5b2bab
commit 3af70f3627
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -120,6 +120,8 @@ def route_to_roa(asn_table: dict):
for net1, net2 in combinations( for net1, net2 in combinations(
sorted(entities, key=lambda net: net["prefix"].prefixlen), 2 sorted(entities, key=lambda net: net["prefix"].prefixlen), 2
): ):
if net1["type"] == net2["type"] == "loopback":
continue
if not net1["prefix"].overlaps(net2["prefix"]): if not net1["prefix"].overlaps(net2["prefix"]):
continue continue
entity_from_net = lambda net: asn_table.get(net["asn"])["owner"] entity_from_net = lambda net: asn_table.get(net["asn"])["owner"]