fix ip-profile ignored at openstack
[osm/RO.git] / osm_ro / vim_thread.py
index 57ced9c..d5301f1 100644 (file)
@@ -999,11 +999,13 @@ class vim_thread(threading.Thread):
             # CREATE
             params = task["params"]
             action_text = "creating VIM"
-            vim_net_id = self.vim.new_network(*params[0:2])
+            vim_net_id = self.vim.new_network(*params[0:3])
 
             net_name = params[0]
             net_type = params[1]
-            wim_account_name = params[3]
+            wim_account_name = None
+            if len(params) >= 4:
+                wim_account_name = params[3]
 
             sdn_controller = self.vim.config.get('sdn-controller')
             if sdn_controller and (net_type == "data" or net_type == "ptp"):