diff --git a/src/vmm_mad/vmware/DeployVM.java b/src/vmm_mad/vmware/DeployVM.java index bcc342e095..b84c97dcfa 100644 --- a/src/vmm_mad/vmware/DeployVM.java +++ b/src/vmm_mad/vmware/DeployVM.java @@ -256,46 +256,49 @@ public class DeployVM void configureNetwork() { - String[][] nics = pXML.getNet(); - + String[][] nics = pXML.getNet(); + int nics_toRemove_counter = 0; if(nics.length==1 && nics[0].equals("")) { return; } // First, let's find out the number of NICs to be removed - // VirtualDevice [] test = vmConfigInfo.getHardware().getDevice(); + VirtualDevice [] test = vmConfigInfo.getHardware().getDevice(); - - - // Lenth of array is #nicsToBeRemoved-#nicsToBeAdded - - //test.length+ - VirtualDeviceConfigSpec [] nicSpecArray = new VirtualDeviceConfigSpec[ - nics.length]; + VirtualDeviceConfigSpec [] nicSpecArray_toRemove = new VirtualDeviceConfigSpec[test.length]; // Let's remove existing NICs - - /* for(int i=0;i