X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=vim_thread.py;h=eb740b4a0423f05609fdaca7887c93dbac6ee7a4;hb=7e0e9c65bbe47c3c4dc784c7b33eac90bc2fde91;hp=d89c4d141af69984ed3838c01aa734682968a855;hpb=3fbff9b6666ea4981e953c98d236b54fb86c583b;p=osm%2FRO.git diff --git a/vim_thread.py b/vim_thread.py index d89c4d14..eb740b4a 100644 --- a/vim_thread.py +++ b/vim_thread.py @@ -164,8 +164,8 @@ class vim_thread(threading.Thread): network = {"name": net_name, "type": net_type} vim_net = self.vim.get_network(net_id) - if vim_net.get('network_type') != 'vlan': - raise vimconn.vimconnException(net_name + "defined as type " + net_type + " but the created network in vim is " + vim_net['provider:network_type']) + if vim_net.get('encapsulation') != 'vlan': + raise vimconn.vimconnException(net_name + "defined as type " + net_type + " but the created network in vim is " + vim_net['encapsulation']) network["vlan"] = vim_net.get('segmentation_id')