diff --git a/src/im_mad/vmware/OneImVmware.java b/src/im_mad/vmware/OneImVmware.java index e6da8778d9..c4a17fcbd4 100644 --- a/src/im_mad/vmware/OneImVmware.java +++ b/src/im_mad/vmware/OneImVmware.java @@ -125,9 +125,9 @@ class OneImVmware extends Thread } argsWithHost[arguments.length] = "--url"; -// argsWithHost[arguments.length + 1 ] = "https://" + hostToMonitor + ":443/sdk"; + argsWithHost[arguments.length + 1 ] = "https://" + hostToMonitor + ":443/sdk"; - argsWithHost[arguments.length + 1 ] = "https://localhost:8008/sdk"; +// argsWithHost[arguments.length + 1 ] = "https://localhost:8008/sdk"; gP = new GetProperty(argsWithHost, "HostSystem", hostToMonitor); // Now it's time to build the response gathering the properties needed diff --git a/src/vmm_mad/vmware/DeployVM.java b/src/vmm_mad/vmware/DeployVM.java index 4c8f72ff0b..bcc342e095 100644 --- a/src/vmm_mad/vmware/DeployVM.java +++ b/src/vmm_mad/vmware/DeployVM.java @@ -217,8 +217,8 @@ public class DeployVM vmConfigSpec.setCpuAllocation(raInfo); // DISKs - - addDisks(); + // TODO finish disk support + // addDisks(); // Network @@ -253,6 +253,137 @@ public class DeployVM } + + void configureNetwork() + { + String[][] nics = pXML.getNet(); + + 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(); + + + + // Lenth of array is #nicsToBeRemoved-#nicsToBeAdded + + //test.length+ + VirtualDeviceConfigSpec [] nicSpecArray = new VirtualDeviceConfigSpec[ + nics.length]; + + // Let's remove existing NICs + + /* for(int i=0;i size) { - dsName = ds.getName(); - i = datastores.length + 1; - } - } - return dsName; - } - */ - - DeployVM(String[] args, String hostName, String vid, ParseXML _pXML, String _datastore, String _datacenter) throws Exception - { - - String[] argsWithHost = new String[args.length+2]; - - for(int i=0;i