Merge branch 'BANS-391' into 'dev_bsgroup_rc-5.2.6'
Fix adding networks logic in DecortController.group_provision method See merge request rudecs/dev/decort-ansible!74
This commit is contained in:
@@ -3988,10 +3988,6 @@ class DecortController(object):
|
|||||||
|
|
||||||
self.result['waypoints'] = "{} -> {}".format(self.result['waypoints'], "group_provision")
|
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_url = "/restmachine/cloudapi/bservice/groupAdd"
|
||||||
api_params = dict(
|
api_params = dict(
|
||||||
serviceId = bs_id,
|
serviceId = bs_id,
|
||||||
@@ -4003,7 +3999,8 @@ class DecortController(object):
|
|||||||
imageId = arg_image_id,
|
imageId = arg_image_id,
|
||||||
driver = arg_driver,
|
driver = arg_driver,
|
||||||
role = arg_role,
|
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
|
timeoutStart = arg_timeout
|
||||||
)
|
)
|
||||||
api_resp = self.decort_api_call(requests.post, api_url, api_params)
|
api_resp = self.decort_api_call(requests.post, api_url, api_params)
|
||||||
|
|||||||
Reference in New Issue
Block a user