make new-net task wim parameter backward compatible 44/7144/1 v5.0.3 v5.0.4
authortierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 30 Jan 2019 13:35:37 +0000 (13:35 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 30 Jan 2019 13:35:37 +0000 (13:35 +0000)
Change-Id: I90e0b0affa4c5350b9ace0000441e7ba022ea7f2
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
openmanod
osm_ro/vim_thread.py

index b49df23..da3739d 100755 (executable)
--- a/openmanod
+++ b/openmanod
@@ -50,7 +50,7 @@ import osm_ro
 
 __author__ = "Alfonso Tierno, Gerardo Garcia, Pablo Montes"
 __date__ = "$26-aug-2014 11:09:29$"
-__version__ = "0.6.06"
+__version__ = "0.6.07"
 version_date = "Jan 2019"
 database_version = 36      # expected database schema version
 
index 57ced9c..8d44f47 100644 (file)
@@ -1003,7 +1003,9 @@ class vim_thread(threading.Thread):
 
             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"):