|
|
|
@ -3987,11 +3987,7 @@ class DecortController(object):
|
|
|
|
|
):
|
|
|
|
|
|
|
|
|
|
self.result['waypoints'] = "{} -> {}".format(self.result['waypoints'], "group_provision")
|
|
|
|
|
|
|
|
|
|
list_vins= list()
|
|
|
|
|
for net in arg_network:
|
|
|
|
|
if net['type'] == 'VINS':
|
|
|
|
|
list_vins.append(net['id'])
|
|
|
|
|
|
|
|
|
|
api_url = "/restmachine/cloudapi/bservice/groupAdd"
|
|
|
|
|
api_params = dict(
|
|
|
|
|
serviceId = bs_id,
|
|
|
|
@ -4003,7 +3999,8 @@ class DecortController(object):
|
|
|
|
|
imageId = arg_image_id,
|
|
|
|
|
driver = arg_driver,
|
|
|
|
|
role = arg_role,
|
|
|
|
|
vinses = list_vins,
|
|
|
|
|
vinses = [n['id'] for n in arg_network if n['type'] == 'VINS'],
|
|
|
|
|
extnets = [n['id'] for n in arg_network if n['type'] == 'EXTNET'],
|
|
|
|
|
timeoutStart = arg_timeout
|
|
|
|
|
)
|
|
|
|
|
api_resp = self.decort_api_call(requests.post, api_url, api_params)
|
|
|
|
|