summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/nf/biz/common.py
diff options
context:
space:
mode:
authormaopengzhang <zhang.maopeng1@zte.com.cn>2019-06-03 09:13:55 +0800
committermaopengzhang <zhang.maopeng1@zte.com.cn>2019-06-03 09:20:40 +0800
commitfccf3487362c1497cab3a793fe70ca51007d5ce5 (patch)
treeceec196b1efd2e6e963a217d41163c0fa009e964 /lcm/lcm/nf/biz/common.py
parentc71175866d16bedda627b47acde2d46f33559127 (diff)
add codes for exception
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>
Diffstat (limited to 'lcm/lcm/nf/biz/common.py')
-rw-r--r--lcm/lcm/nf/biz/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lcm/lcm/nf/biz/common.py b/lcm/lcm/nf/biz/common.py
index bd8411d4..c4ddf3e6 100644
--- a/lcm/lcm/nf/biz/common.py
+++ b/lcm/lcm/nf/biz/common.py
@@ -68,7 +68,7 @@ def subnet_save(job_id, nf_inst_id, ret):
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"),