Commit 55f70aef authored by Dimitris Aragiorgis's avatar Dimitris Aragiorgis Committed by Iustin Pop
Browse files

Fix bug in network module

Signed-off-by: default avatarDimitris Aragiorgis <>
Signed-off-by: default avatarIustin Pop <>
[ slightly improved code flow]
Reviewed-by: default avatarIustin Pop <>
parent 425f3ffe
......@@ -201,10 +201,11 @@ class AddressPool(object):
@raise errors.AddressPoolError: Pool is full
if self.IsFull():
raise errors.AddressPoolError("%s is full" %
idx =, 1)
return str([idx])
if idx:
return str([idx[0]])
raise errors.AddressPoolError("%s is full" %
def GetExternalReservations(self):
"""Returns a list of all externally reserved addresses.
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