X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Flcm%2Fpub%2Fvimapi%2Fadaptor.py;h=83727f2dd20e19a2a81e822c30c0300762ad3f44;hb=3e5e393882d6c7b2cf1252d6b2ae4944efb7fe85;hp=27b6433680aab19d8699dbac6729ab460f509dda;hpb=ef2d340df0bcb7a662628884b7506df9ccf85bd5;p=vfc%2Fgvnfm%2Fvnflcm.git diff --git a/lcm/lcm/pub/vimapi/adaptor.py b/lcm/lcm/pub/vimapi/adaptor.py index 27b64336..83727f2d 100644 --- a/lcm/lcm/pub/vimapi/adaptor.py +++ b/lcm/lcm/pub/vimapi/adaptor.py @@ -391,6 +391,7 @@ def create_vm(vim_cache, res_cache, data, vm, do_notify, res_type): 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"):