Commit af9d245f authored by Spiros Koulouzis's avatar Spiros Koulouzis

reduce number of VMs

parent 8077df69
......@@ -102,6 +102,7 @@ class DumpPlanner:
def plan(self,max_vms):
network_templates = self.get_network_templates()
vms = []
print network_templates
if network_templates and network_templates['network'] and network_templates['network']['multicast'] == True:
vm = {}
vm['name'] = 'id'
......@@ -158,7 +159,9 @@ class DumpPlanner:
vm['scaling_mode'] = 'single'
vms.append(vm)
if max_vms <= -1:
max_vms = len(vms)//3
if max_vms > -1 and len(vms) > max_vms:
vms = self.sort_vms(vms,max_vms)
return vms
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