new networking change integration

This commit is contained in:
Kelven Yang 2010-12-08 17:06:28 -08:00
parent 4e9c030d82
commit b285bbb683
2 changed files with 7 additions and 0 deletions

View File

@ -75,4 +75,6 @@ public interface VirtualMachineTemplate extends ControlledEntity {
TemplateType getTemplateType();
HypervisorType getHypervisorType();
int getBits();
}

View File

@ -70,6 +70,11 @@ public abstract class HypervisorGuruBase extends AdapterBase implements Hypervis
to.setNics(nics);
to.setDisks(vmProfile.getDisks().toArray(new VolumeTO[vmProfile.getDisks().size()]));
if(vmProfile.getTemplate().getBits() == 32)
to.setArch("i686");
else
to.setArch("x86_64");
return to;
}