Update ns inst buildin workflow logic 53/20753/1
authorfujinhua <fu.jinhua@zte.com.cn>
Thu, 26 Oct 2017 10:00:47 +0000 (18:00 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Thu, 26 Oct 2017 10:00:47 +0000 (18:00 +0800)
Change-Id: I9993c4e6be9b67fda4c7f0f18ba34801a6d40738
Issue-Id: VFC-558
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/workflows/build_in.py

index e1e3cdd..e562da7 100644 (file)
@@ -53,9 +53,9 @@ def run_ns_instantiate(input_data):
     nsd_json = ignore_case_get(input_data, "object_context")
     ns_param_json = ignore_case_get(input_data, "object_additionalParamForNs")
     vnf_param_json = ignore_case_get(input_data, "object_additionalParamForVnf")
-    vl_count = ignore_case_get(input_data, "vlCount")
-    vnf_count = ignore_case_get(input_data, "vnfCount")
-    sfc_count = ignore_case_get(input_data, "sfcCount")
+    vl_count = int(ignore_case_get(input_data, "vlCount", 0))
+    vnf_count = int(ignore_case_get(input_data, "vnfCount", 0))
+    sfc_count = int(ignore_case_get(input_data, "sfcCount", 0))
     sdnc_id = ignore_case_get(input_data, "sdnControllerId")
     g_jobs_status[job_id] = [1 for i in range(vnf_count)]
     try: