summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/pub/vimapi/adaptor.py
diff options
context:
space:
mode:
authorYan Yang <yangyanyj@chinamobile.com>2019-06-04 02:36:21 +0000
committerGerrit Code Review <gerrit@onap.org>2019-06-04 02:36:21 +0000
commitdb895fab77265d947dedb657d77941020278400c (patch)
tree1fc30503e61988aeeb2ea46c64d5d40c09396dec /lcm/lcm/pub/vimapi/adaptor.py
parent4f1a85203790af073e0f6f19c9770f4f40f3281c (diff)
parentfccf3487362c1497cab3a793fe70ca51007d5ce5 (diff)
Merge "add codes for exception"dublin
Diffstat (limited to 'lcm/lcm/pub/vimapi/adaptor.py')
-rw-r--r--lcm/lcm/pub/vimapi/adaptor.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lcm/lcm/pub/vimapi/adaptor.py b/lcm/lcm/pub/vimapi/adaptor.py
index 83727f2d..ae18863a 100644
--- a/lcm/lcm/pub/vimapi/adaptor.py
+++ b/lcm/lcm/pub/vimapi/adaptor.py
@@ -252,6 +252,8 @@ def create_port(vim_cache, res_cache, data, port, do_notify, res_type):
raise VimException(err_msg % (port_ref_vdu_id, port["cp_id"]), ERR_CODE)
network_id = ignore_case_get(port, "networkId")
subnet_id = ignore_case_get(port, "subnetId")
+ if port["vl_id"] == "":
+ return
if not network_id:
network_id = get_res_id(res_cache, RES_NETWORK, port["vl_id"])
subnet_id = get_res_id(res_cache, RES_SUBNET, port["vl_id"])