Changes in vimconn_vmware.py to provide vim interface id on VM creation 25/5525/2
authorbhangare <sbhangare@vmware.com>
Thu, 5 Oct 2017 07:51:15 +0000 (00:51 -0700)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Thu, 5 Oct 2017 12:34:38 +0000 (14:34 +0200)
Change-Id: I1c92df2436a40edec45f95feb18107705df5fd31
Signed-off-by: bhangare <sbhangare@vmware.com>
osm_ro/vimconn_vmware.py

index ad45844..82d6a69 100644 (file)
@@ -1639,7 +1639,9 @@ class vimconnector(vimconn.vimconnector):
                 if 'net_id' not in net:
                     continue
 
-                net_list['vim_id'] = net_list['net_id']  # Provide the same VIM identifier as the VIM network
+                #Using net_id as a vim_id i.e. vim interface id, as do not have saperate vim interface id
+                #Same will be returned in refresh_vms_status() as vim_interface_id
+                net['vim_id'] = net['net_id']  # Provide the same VIM identifier as the VIM network
 
                 interface_net_id = net['net_id']
                 interface_net_name = self.get_network_name_by_id(network_uuid=interface_net_id)