X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=vim_thread.py;h=3c35d6c905bfb9de98f7d3a932c17e1c5dec6f3c;hb=refs%2Fchanges%2F16%2F1516%2F2;hp=1b518d3e033398b161f021760db4a111edeaeaab;hpb=b12711fda02f2bac40a2cc1adfb5a27675bbad61;p=osm%2FRO.git diff --git a/vim_thread.py b/vim_thread.py index 1b518d3e..3c35d6c9 100644 --- a/vim_thread.py +++ b/vim_thread.py @@ -397,6 +397,7 @@ class vim_thread(threading.Thread): net_type = params[1] network = None + sdn_net_id = None sdn_controller = self.vim.config.get('sdn-controller') if sdn_controller and (net_type == "data" or net_type == "ptp"): network = {"name": net_name, "type": net_type} @@ -407,7 +408,6 @@ class vim_thread(threading.Thread): "net '{}' defined as type '{}' has not vlan encapsulation '{}'".format( net_name, net_type, vim_net['encapsulation'])) network["vlan"] = vim_net.get('segmentation_id') - sdn_net_id = None try: sdn_net_id = self.ovim.new_network(network) except (ovimException, Exception) as e: