diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2017-10-26 18:00:47 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2017-10-26 18:00:47 +0800 |
commit | c3c74554125a045c277937213fd66b73124aae11 (patch) | |
tree | 360fcadb1c55b06dde6601785686f220ee6e21ed | |
parent | 2375c544485790d3b10c63b868b587de3140ca85 (diff) |
Update ns inst buildin workflow logic
Change-Id: I9993c4e6be9b67fda4c7f0f18ba34801a6d40738
Issue-Id: VFC-558
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | lcm/workflows/build_in.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lcm/workflows/build_in.py b/lcm/workflows/build_in.py index e1e3cdd2..e562da74 100644 --- a/lcm/workflows/build_in.py +++ b/lcm/workflows/build_in.py @@ -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: |