mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Add KVM to hypervisor types allowed in VPC
RB: https://reviews.apache.org/r/6926/ Send-by: Marcus Sorensen
This commit is contained in:
parent
a19d7ab00b
commit
24fa14845b
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user