Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,14 @@ protected String getNoHypervisorsErrMsgDetails() {
protected List<HypervisorType> getHypervisors(final RouterDeploymentDefinition routerDeploymentDefinition) throws InsufficientServerCapacityException {
final DeployDestination dest = routerDeploymentDefinition.getDest();
List<HypervisorType> hypervisors = new ArrayList<HypervisorType>();
if (dest.getCluster() != null) {
HypervisorType routerHypervisorType = HypervisorType.None;
final String routerHypervisorTypeStr = VirtualNetworkApplianceManager.VirtualRouterHypervisorType.valueIn(routerDeploymentDefinition.getOwner().getId());
if (routerHypervisorTypeStr != null) {
routerHypervisorType = HypervisorType.getType(routerHypervisorTypeStr);
}
if (routerHypervisorType != HypervisorType.None) {
hypervisors.add(routerHypervisorType);
} else if (dest.getCluster() != null) {
if (dest.getCluster().getHypervisorType() == HypervisorType.Ovm) {
hypervisors.add(getClusterToStartDomainRouterForOvm(dest.getCluster().getPodId()));
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public interface VirtualNetworkApplianceManager extends Manager, VirtualNetworkA
static final String SetServiceMonitorCK = "network.router.EnableServiceMonitoring";
static final String RouterAlertsCheckIntervalCK = "router.alerts.check.interval";
static final String VirtualRouterServiceOfferingCK = "router.service.offering";
static final String VirtualRouterHypervisorTypeCK = "router.hypervisor.type";

static final String RouterHealthChecksConfigRefreshIntervalCK = "router.health.checks.config.refresh.interval";
static final String RouterHealthChecksResultFetchIntervalCK = "router.health.checks.results.fetch.interval";
Expand Down Expand Up @@ -77,6 +78,9 @@ public interface VirtualNetworkApplianceManager extends Manager, VirtualNetworkA

static final ConfigKey<String> VirtualRouterServiceOffering = new ConfigKey<String>(String.class, VirtualRouterServiceOfferingCK, "Advanced", "",
"Uuid of the service offering used by virtual routers; if NULL - system offering will be used", true, ConfigKey.Scope.Account, null);
static final ConfigKey<String> VirtualRouterHypervisorType = new ConfigKey<String>(String.class, VirtualRouterHypervisorTypeCK, "Advanced", "",
"Hypervisor type used to create virtual routers, valid values are: XenServer, KVM, VMware, Hyperv, VirtualBox, Parralels, BareMetal, Ovm, LXC, Any; " +
"if NULL - virtual router will be created with same hypervisor as user vm", true, ConfigKey.Scope.Account, null);

// Health checks
static final ConfigKey<Boolean> RouterHealthChecksEnabled = new ConfigKey<Boolean>(Boolean.class, "router.health.checks.enabled", "Advanced", "true",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3236,6 +3236,7 @@ public ConfigKey<?>[] getConfigKeys() {
RouterVersionCheckEnabled,
SetServiceMonitor,
VirtualRouterServiceOffering,
VirtualRouterHypervisorType,
RouterAlertsCheckInterval,
RouterHealthChecksEnabled,
RouterHealthChecksBasicInterval,
Expand Down