Add KVM to hypervisor types allowed in VPC

RB: https://reviews.apache.org/r/6926/
Send-by: Marcus Sorensen
This commit is contained in:
Edison Su 2012-09-07 14:35:31 -07:00
parent a19d7ab00b
commit 24fa14845b
2 changed files with 2 additions and 1 deletions

View File

@ -1963,6 +1963,7 @@ public class VpcManagerImpl implements VpcManager, Manager{
List<HypervisorType> hTypes = new ArrayList<HypervisorType>();
hTypes.add(HypervisorType.XenServer);
hTypes.add(HypervisorType.VMware);
hTypes.add(HypervisorType.KVM);
return hTypes;
}
}

View File

@ -2240,7 +2240,7 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager
throw new InvalidParameterValueException("Unable to find network by id " + networkIdList.get(0).longValue());
}
if (network.getVpcId() != null) {
//Only XenServer and VmWare hypervisors are supported for vpc networks
//Only XenServer, KVM, and VmWare hypervisors are supported for vpc networks
if (!vpcSupportedHTypes.contains(template.getHypervisorType())) {
throw new InvalidParameterValueException("Can't create vm from template with hypervisor "
+ template.getHypervisorType() + " in vpc network " + network);