fixing vmcreate

This commit is contained in:
deflax 2016-11-03 06:39:39 +02:00
parent 07e0e4cfaa
commit 577a654940

View file

@ -74,7 +74,7 @@ def vmcreate(req):
#slave_name = str(grid.query_happiness(region_id, weight)) #TODO: provide weight parameters here and calculate route #slave_name = str(grid.query_happiness(region_id, weight)) #TODO: provide weight parameters here and calculate route
slave_name = 'warrior' #staic route slave_name = 'warrior' #staic route
#vmid = str(grid.generate_vmid()) #TODO: this should be between 100 and 65000 #vmid = str(grid.generate_vmid()) #TODO: this should be between 100 and 65000
vmid = random.randint(200, 62000) vm_id = random.randint(200, 62000)
cubeid = time.time() #TODO: make sure this is unique. time since epoch is not random enough but should do the trick for now cubeid = time.time() #TODO: make sure this is unique. time since epoch is not random enough but should do the trick for now
ipv4_list = grid.generate_ipv4(req['region'], req['vps_ipv4']) ipv4_list = grid.generate_ipv4(req['region'], req['vps_ipv4'])