X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_ro%2Fvim_thread.py;h=d5301f1a6eafa3bf55fe3b4bea17537527dc731d;hb=80015b5b5b4309d89e3610dda528ebb2126378ee;hp=57ced9cfaf27055c99a1d7857ff2bd4f6355de73;hpb=5751ab9862f721c76b132bdb84a9759ef0cbe659;p=osm%2FRO.git diff --git a/osm_ro/vim_thread.py b/osm_ro/vim_thread.py index 57ced9cf..d5301f1a 100644 --- a/osm_ro/vim_thread.py +++ b/osm_ro/vim_thread.py @@ -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"):