Commit 7f033fb3 authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis Committed by Iustin Pop
Browse files

Add docstring to the GetECReserved config method


Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 032a7d71
...@@ -109,6 +109,11 @@ class TemporaryReservationManager: ...@@ -109,6 +109,11 @@ class TemporaryReservationManager:
return all_reserved return all_reserved
def GetECReserved(self, ec_id): def GetECReserved(self, ec_id):
""" Used when you want to retrieve all reservations for a specific
execution context. E.g when commiting reserved IPs for a specific
network.
"""
ec_reserved = set() ec_reserved = set()
if ec_id in self._ec_reserved: if ec_id in self._ec_reserved:
ec_reserved.update(self._ec_reserved[ec_id]) ec_reserved.update(self._ec_reserved[ec_id])
......
Markdown is supported
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