mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
New hypervisor type
This commit is contained in:
parent
948df86f5d
commit
3b0fb655a9
@ -30,6 +30,7 @@ public class Hypervisor {
|
||||
Parralels,
|
||||
BareMetal,
|
||||
Simulator,
|
||||
Ovm,
|
||||
|
||||
Any; /*If you don't care about the hypervisor type*/
|
||||
|
||||
@ -56,6 +57,8 @@ public class Hypervisor {
|
||||
return HypervisorType.BareMetal;
|
||||
} else if (hypervisor.equalsIgnoreCase("Simulator")) {
|
||||
return HypervisorType.Simulator;
|
||||
} else if (hypervisor.equalsIgnoreCase("Ovm")) {
|
||||
return HypervisorType.Ovm;
|
||||
} else if (hypervisor.equalsIgnoreCase("Any")) {
|
||||
return HypervisorType.Any;
|
||||
} else {
|
||||
|
||||
@ -2766,7 +2766,7 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory, ResourceS
|
||||
// If this command is from a KVM agent, or from an agent that has a
|
||||
// null hypervisor type, don't do the CIDR check
|
||||
if (hypervisorType == null || hypervisorType == HypervisorType.KVM || hypervisorType == HypervisorType.VMware || hypervisorType == HypervisorType.BareMetal
|
||||
|| hypervisorType == HypervisorType.Simulator) {
|
||||
|| hypervisorType == HypervisorType.Simulator || hypervisorType == HypervisorType.Ovm) {
|
||||
doCidrCheck = false;
|
||||
}
|
||||
|
||||
|
||||
@ -63,4 +63,5 @@ public interface SerialVersionUID {
|
||||
public static final long HttpCallException = Base | 0x23;
|
||||
public static final long VirtualMachineMigrationException = Base | 0x24;
|
||||
public static final long DiscoveredWithErrorException = Base | 0x25;
|
||||
public static final long CallFailedException = Base | 0x26;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user