Change-Id: I330ccfae97f0f1494d432b87a15dcd1567034327
Issue-ID: VFC-1306
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
is_predefined=ignore_case_get(ret, "returnCode"),
instid=nf_inst_id,
vmid=vm_id)
+ for portid in ignore_case_get(ret, "ports"):
+ PortInstModel.objects.filter(
+ resourceid=portid
+ ).update(
+ vmid=ignore_case_get(ret, "id")
+ )
set_opt_val(param, "serverGroup", "") # TODO the ServerGroup for anti-affinity and affinity
ret = api.create_vm(vim_id, tenant_id, param)
+ ret["ports"] = [nic.get("portId") for nic in param["nicArray"]]
do_notify(res_type, ret)
vm_id = ret["id"]
if ignore_case_get(ret, "name"):