Skip to content
Snippets Groups Projects
Commit 85c5d3c9 authored by Apollon Oikonomopoulos's avatar Apollon Oikonomopoulos
Browse files

Improve temporary reservation of IP addresses


Add a new method, TemporaryReservationManager.GetECReserved(), which returns all
reservations held by a given ec_id.

Also add a new method, ConfigWriter._UnlockedCommitReservedIps(), which can be
called to commit all temporarily reserved IP addresses to the respective
address pools. For this to work, the IP reservation manager must hold both, the
address and the network UUID of the respective address pool.

Finally, we automatically commit IP address reservations during
ConfigWriter.Update() of Instance objects. For this to work, we add an optional
ec_id keyword, which must hold the calling job's unique id to get the
relevant reservations.

Signed-off-by: default avatarApollon Oikonomopoulos <apollon@noc.grnet.gr>
parent 03265e02
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment