diff options
author | Fu Jinhua <fu.jinhua@zte.com.cn> | 2019-07-27 02:33:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-27 02:33:27 +0000 |
commit | 93402f7440d9fa8e1d6de56c36d047c9aea73c54 (patch) | |
tree | 7df4997aa5a01608b120f8873d4eb89ef21d53d3 /lcm/lcm/pub/vimapi/adaptor.py | |
parent | ece396ff05f95abd1faa864a0682b410eaa24a06 (diff) | |
parent | 391f841b3c4ec5a0e10ae5c242f7e16209ec98d6 (diff) |
Merge " improve code coverage rate (change ext conn) after vfclcm upgraded from python2 to python"
Diffstat (limited to 'lcm/lcm/pub/vimapi/adaptor.py')
-rw-r--r-- | lcm/lcm/pub/vimapi/adaptor.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lcm/lcm/pub/vimapi/adaptor.py b/lcm/lcm/pub/vimapi/adaptor.py index bce31384..5c8386bd 100644 --- a/lcm/lcm/pub/vimapi/adaptor.py +++ b/lcm/lcm/pub/vimapi/adaptor.py @@ -265,6 +265,7 @@ def create_port(vim_cache, res_cache, data, port, do_notify, res_type): set_opt_val(param, "subnetId", subnet_id) set_opt_val(param, "macAddress", ignore_case_get(port["properties"], "mac_address")) ip_address = [] + logger.debug("port['properties']:%s" % port["properties"]) for one_protocol_data in port["properties"]["protocol_data"]: l3_address_data = one_protocol_data["address_data"]["l3_address_data"] # l3 is not 13 fixed_ip_address = ignore_case_get(l3_address_data, "fixed_ip_address") @@ -525,7 +526,7 @@ def create_port_of_vm(vim_cache, res_cache, data, port, do_notify, res_type): } ret = api.create_vm_port(vim_id, tenant_id, vm_id, param) ret["nodeId"] = port["cp_id"] - do_notify(res_type, ret) + do_notify("create", res_type, ret) def delete_port_of_vm(vim_cache, res_cache, data, port, do_notify, res_type): |