Fix create_vls 96/90996/1
authorhewei-cmss <hewei@cmss.chinamobile.com>
Mon, 8 Jul 2019 03:09:38 +0000 (11:09 +0800)
committerhewei-cmss <hewei@cmss.chinamobile.com>
Mon, 8 Jul 2019 03:09:38 +0000 (11:09 +0800)
Issue-ID: VFC-1438

Signed-off-by: hewei-cmss <hewei@cmss.chinamobile.com>
Change-Id: Ie38505c67119ea925f80b45d4626b03f6348392c

lcm/ns_vls/biz/create_vls.py

index a562684..0746af5 100644 (file)
@@ -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 = {