X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=lcm%2Flcm%2Fpub%2Fvimapi%2Fadaptor.py;h=b63cf1eefa7f4615e33cc28bce7fc30846a3f5f3;hb=2b7749ec69c06af3431bf9666c7c175a38762866;hp=6431daa729b128809d84e57caee15e9efaa5757f;hpb=794bf69b7fd14671e80b1caebaf807e1b5f85073;p=vfc%2Fgvnfm%2Fvnflcm.git diff --git a/lcm/lcm/pub/vimapi/adaptor.py b/lcm/lcm/pub/vimapi/adaptor.py index 6431daa7..b63cf1ee 100644 --- a/lcm/lcm/pub/vimapi/adaptor.py +++ b/lcm/lcm/pub/vimapi/adaptor.py @@ -173,7 +173,7 @@ def create_port(vim_cache, res_cache, port, do_notify, res_type): tenant_id = get_tenant_id(vim_cache, vim_id, tenant_name) ret = api.create_subnet(vim_id, tenant_id, param) do_notify(res_type, ret) - set_res_cache(res_cache, res_type, subnet["cp_id"], ret["id"]) + set_res_cache(res_cache, res_type, port["cp_id"], ret["id"]) def create_flavor(vim_cache, res_cache, data, flavor, do_notify, res_type): location_info = flavor["properties"]["location_info"] @@ -181,7 +181,7 @@ def create_flavor(vim_cache, res_cache, data, flavor, do_notify, res_type): param = { "name": "Flavor_%s" % flavor["vdu_id"], "vcpu": int(flavor["nfv_compute"]["num_cpus"]), - "memory": int(flavor["nfv_compute"]["mem_size"].replace('MB', '').strip()), + "memory": '', "isPublic": True } for local_storage_id in ignore_case_get(flavor, "local_storages"):