aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/gui/app/views.py
diff options
context:
space:
mode:
authorMichael Elkins <melkins@tislabs.com>2013-06-14 16:10:07 +0000
committerMichael Elkins <melkins@tislabs.com>2013-06-14 16:10:07 +0000
commitf27f3ebd66959d0f686e541ccf7db9e6d8da786e (patch)
tree023a2c58204d65b53a5ed02c51912b357793805d /rpkid/rpki/gui/app/views.py
parent0bd5faec07899fc3033a43440610c8bd0cccbe0b (diff)
fix bug in roa confirmation page where routes that overlap with the roa, but are not covered, were mistakenly included in the list of affected routes
closes #553 svn path=/trunk/; revision=5407
Diffstat (limited to 'rpkid/rpki/gui/app/views.py')
-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: