X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Flcm%2Fpub%2Fvimapi%2Fadaptor.py;h=bce3138491ce6a88a89ce53154829833bd920e95;hb=c23b4b6131096628c13469d4dc204beb4c05eb55;hp=3c5af44ee53b44230f57cc3b9ea953a0d3f04033;hpb=b7f679695743d0c2a046997bf4a6ed5ae0ac1e43;p=vfc%2Fgvnfm%2Fvnflcm.git diff --git a/lcm/lcm/pub/vimapi/adaptor.py b/lcm/lcm/pub/vimapi/adaptor.py index 3c5af44e..bce31384 100644 --- a/lcm/lcm/pub/vimapi/adaptor.py +++ b/lcm/lcm/pub/vimapi/adaptor.py @@ -252,9 +252,10 @@ 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: + if port["vl_id"] == "": + return network_id = get_res_id(res_cache, RES_NETWORK, port["vl_id"]) subnet_id = get_res_id(res_cache, RES_SUBNET, port["vl_id"]) param = {