Commit d5866136 authored by cedgar's avatar cedgar
Browse files

fix in the rsvp controller. When you would modify an existing reservation and...

fix in the rsvp controller. When you would modify an existing reservation and change the priority the algorithm had a small bug
parent ab56d17f
......@@ -371,6 +371,10 @@ class RSVPController(object):
# check if the flow could be placed removing lower priorities
previous_links_capacities = self.links_capacity.copy()
for reservation, data in self.current_reservations.items():
# make sure we do not remove ourselves
# again in case this is a modification
if reservation == (src, dst):
continue
if data['priority'] < priority:
self.add_link_capacity(data['path'], data['bw'])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment