aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhewei-cmss <hewei@cmss.chinamobile.com>2019-07-08 11:09:38 +0800
committerhewei-cmss <hewei@cmss.chinamobile.com>2019-07-08 11:09:38 +0800
commit6ed46a1d793c660cb08ac60df96343149db010ce (patch)
tree6e32c701d3bab8fb267b27e5b8e33ed9a9a74ad4
parentf47c11feafe89b7f8ce95c360e5c603a5f22f399 (diff)
Fix create_vls
Issue-ID: VFC-1438 Signed-off-by: hewei-cmss <hewei@cmss.chinamobile.com> Change-Id: Ie38505c67119ea925f80b45d4626b03f6348392c
-rw-r--r--lcm/ns_vls/biz/create_vls.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lcm/ns_vls/biz/create_vls.py b/lcm/ns_vls/biz/create_vls.py
index a562684c..0746af59 100644
--- a/lcm/ns_vls/biz/create_vls.py
+++ b/lcm/ns_vls/biz/create_vls.py
@@ -90,6 +90,8 @@ class CreateVls(object):
def create_vl_to_vim(self):
self.vim_id = self.vl_properties["location_info"]["vimid"]
if not self.vim_id:
+ if isinstance(self.additionalParam, str):
+ self.additionalParam = json.JSONDecoder().decode(self.additionalParam)
self.vim_id = ignore_case_get(self.additionalParam, "location")
self.tenant = ignore_case_get(self.vl_properties["location_info"], "tenant")
network_data = {