mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Removed default configuration files for VMWare drivers.
Fixed minor XML parsing bug. git-svn-id: http://svn.opennebula.org/one/trunk@668 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
parent
d965eb44aa
commit
b82c9f3760
@ -336,7 +336,7 @@ public class DeployVM
|
||||
|
||||
// Let's remove existing NICs
|
||||
|
||||
for(int i=0;i<test.length;i++)
|
||||
/* for(int i=0;i<test.length;i++)
|
||||
{
|
||||
VirtualDeviceConfigSpec nicSpec = new VirtualDeviceConfigSpec();
|
||||
VirtualEthernetCard nic;
|
||||
@ -348,14 +348,14 @@ public class DeployVM
|
||||
|
||||
nicSpecArray[i] = nicSpec;
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
// Let's add specified NICs
|
||||
|
||||
for(int i=0;i<nics.length;i++)
|
||||
{
|
||||
VirtualDeviceConfigSpec nicSpec = new VirtualDeviceConfigSpec();
|
||||
// TODO make this dynamic?
|
||||
// TODO make this dynamic
|
||||
String networkName = "one-net";
|
||||
|
||||
nicSpec.setOperation(VirtualDeviceConfigSpecOperation.add);
|
||||
|
@ -85,7 +85,7 @@ public class ParseXML
|
||||
|
||||
for(int i=0; i<diskNL.getLength(); i++)
|
||||
{
|
||||
NodeList sourceNode = ((Element)diskNL).getElementsByTagName("SOURCE");
|
||||
NodeList sourceNode = ((Element)diskNL.item(i)).getElementsByTagName("SOURCE");
|
||||
|
||||
disk[i] = ((Node)sourceNode.item(0)).getFirstChild().getNodeValue().trim();
|
||||
}
|
||||
@ -101,7 +101,7 @@ public class ParseXML
|
||||
|
||||
for(int i=0; i<nwNL.getLength(); i++)
|
||||
{
|
||||
NodeList mac = ((Element)nwNL).getElementsByTagName("MAC");
|
||||
NodeList mac = ((Element)nwNL.item(i)).getElementsByTagName("MAC");
|
||||
|
||||
macs[i] = ((Node)mac.item(0)).getFirstChild().getNodeValue().trim();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user