From: tierno Date: Wed, 30 Jan 2019 13:35:37 +0000 (+0000) Subject: make new-net task wim parameter backward compatible X-Git-Tag: v5.0.3 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=14ce50f02c3ae259481a8e6be6cfda5f4bdd609f;p=osm%2FRO.git make new-net task wim parameter backward compatible Change-Id: I90e0b0affa4c5350b9ace0000441e7ba022ea7f2 Signed-off-by: tierno --- diff --git a/openmanod b/openmanod index b49df23e..da3739d7 100755 --- 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 diff --git a/osm_ro/vim_thread.py b/osm_ro/vim_thread.py index 57ced9cf..8d44f472 100644 --- a/osm_ro/vim_thread.py +++ b/osm_ro/vim_thread.py @@ -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"):