multicloud return enableDHCP empty; cp in VNFD does not config the vl
Change-Id: Id6ea879e8fd1d042f932b5add09d29f2db52f270
Issue-ID: VFC-1406
Signed-off-by: maopengzhang <zhang.maopeng1@zte.com.cn>
networkid=ignore_case_get(ret, "networkId"),
cidr=ignore_case_get(ret, "cidr"),
ipversion=ignore_case_get(ret, "ipversion"),
networkid=ignore_case_get(ret, "networkId"),
cidr=ignore_case_get(ret, "cidr"),
ipversion=ignore_case_get(ret, "ipversion"),
- isdhcpenabled=ignore_case_get(ret, "enableDhcp"),
+ isdhcpenabled=ignore_case_get(ret, "enableDhcp", 0),
gatewayip=ignore_case_get(ret, "gatewayIp"),
dnsNameservers=ignore_case_get(ret, "dnsNameservers"),
hostRoutes=ignore_case_get(ret, "hostRoutes"),
gatewayip=ignore_case_get(ret, "gatewayIp"),
dnsNameservers=ignore_case_get(ret, "dnsNameservers"),
hostRoutes=ignore_case_get(ret, "hostRoutes"),
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")
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"])
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"])