aboutsummaryrefslogtreecommitdiffstats
path: root/src/account
diff options
context:
space:
mode:
Diffstat (limited to 'src/account')
-rw-r--r--src/account/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/account/models.py b/src/account/models.py
index 5d83ddf..6828ee1 100644
--- a/src/account/models.py
+++ b/src/account/models.py
@@ -108,6 +108,8 @@ class VlanManager(models.Model):
if len(allocated) != count:
raise ResourceAvailabilityException("can't allocate the vlans requested")
+ return allocated
+
def get_public_vlan(self):
"""Return reference to an available public network without reserving it."""
return PublicNetwork.objects.filter(lab=self.lab_set.first(), in_use=False).first()