diff options
author | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2020-07-28 18:23:36 -0400 |
---|---|---|
committer | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2020-07-28 18:23:36 -0400 |
commit | 50e93d9861aab210cda256cacd88c4ef1af1f1ea (patch) | |
tree | 3528025cf5043f284d709dfb1f2af792ca27b194 /src/account | |
parent | addc7325e82f7b011180219b6d218798780b7180 (diff) |
Fixes for prod deploy
broken configstate causes hosts not to power on when they should
vlan manager needs to actually return allocated vlans
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Change-Id: I1060a6599fb44bd2ca239d35fbf7e69d13f499a6
Diffstat (limited to 'src/account')
-rw-r--r-- | src/account/models.py | 2 |
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() |