From 97b192de23d82bd6c6c142a3ab145912b52fe2ce Mon Sep 17 00:00:00 2001 From: bhangare Date: Thu, 5 Oct 2017 00:51:15 -0700 Subject: [PATCH] Changes in vimconn_vmware.py to provide vim interface id on VM creation Change-Id: I1c92df2436a40edec45f95feb18107705df5fd31 Signed-off-by: bhangare --- osm_ro/vimconn_vmware.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osm_ro/vimconn_vmware.py b/osm_ro/vimconn_vmware.py index ad458447..82d6a697 100644 --- a/osm_ro/vimconn_vmware.py +++ b/osm_ro/vimconn_vmware.py @@ -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) -- 2.25.1