diff options
author | 2020-10-22 19:00:45 +0000 | |
---|---|---|
committer | 2020-10-22 19:00:45 +0000 | |
commit | 204076852d5518ae515d79c362d5e4beea17d8e4 (patch) | |
tree | bfad74f1ce2d9b7ad7eda231d79582bebb5a588e /src/resource_inventory | |
parent | c9c18a40b54af4a2fa501e55d0d5147d14a0a62d (diff) | |
parent | 9f426a2ab31b60383e1c73fb2948c06656435ba3 (diff) |
Merge "Fix quick booking allocation of private vlans for pods"2.0.99
Diffstat (limited to 'src/resource_inventory')
-rw-r--r-- | src/resource_inventory/resource_manager.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/resource_inventory/resource_manager.py b/src/resource_inventory/resource_manager.py index 81f4747..140cc09 100644 --- a/src/resource_inventory/resource_manager.py +++ b/src/resource_inventory/resource_manager.py @@ -77,9 +77,10 @@ class ResourceManager: vlan_manager.reserve_public_vlan(public_net.vlan) networks[network.name] = public_net.vlan else: - vlan = vlan_manager.get_vlan() - vlan_manager.reserve_vlans(vlan) - networks[network.name] = vlan + # already throws if can't get requested count, so can always index in @ 0 + vlans = vlan_manager.get_vlans(count=1) + vlan_manager.reserve_vlans(vlans[0]) + networks[network.name] = vlans[0] return networks def instantiateTemplate(self, resource_template): |