aboutsummaryrefslogtreecommitdiff
path: root/rpkid
diff options
context:
space:
mode:
Diffstat (limited to 'rpkid')
-rw-r--r--rpkid/rpki/gui/app/views.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/rpkid/rpki/gui/app/views.py b/rpkid/rpki/gui/app/views.py
index 3640d160..0747aef5 100644
--- a/rpkid/rpki/gui/app/views.py
+++ b/rpkid/rpki/gui/app/views.py
@@ -542,9 +542,10 @@ def get_covered_routes(rng, max_prefixlen, asn):
"""
+ # find all routes that match or are completed covered by the proposed new roa
qs = RouteOrigin.objects.filter(
- prefix_min__lte=rng.max,
- prefix_max__gte=rng.min
+ prefix_min__gte=rng.min,
+ prefix_max__lte=rng.max
)
routes = []
for route in qs: