shwstppr commented on code in PR #10289:
URL: https://github.com/apache/cloudstack/pull/10289#discussion_r1990707052
##########
plugins/network-elements/internal-loadbalancer/src/main/java/org/apache/cloudstack/network/lb/InternalLoadBalancerVMManagerImpl.java:
##########
@@ -732,6 +733,78 @@ public List<DomainRouterVO> findInternalLbVms(final long
guestNetworkId, final I
return internalLbVms;
}
+ protected String getRouterTemplateForHypervisor(HypervisorType
hypervisorType, long dataCenterId) {
+ String templateName = null;
+ if (XenServer.equals(hypervisorType)) {
+ templateName =
VirtualNetworkApplianceManager.RouterTemplateXen.valueIn(dataCenterId);
+ } else if (KVM.equals(hypervisorType)) {
+ templateName =
VirtualNetworkApplianceManager.RouterTemplateKvm.valueIn(dataCenterId);
+ } else if (VMware.equals(hypervisorType)) {
+ templateName =
VirtualNetworkApplianceManager.RouterTemplateVmware.valueIn(dataCenterId);
+ } else if (Hyperv.equals(hypervisorType)) {
+ templateName =
VirtualNetworkApplianceManager.RouterTemplateHyperV.valueIn(dataCenterId);
+ } else if (LXC.equals(hypervisorType)) {
+ templateName =
VirtualNetworkApplianceManager.RouterTemplateLxc.valueIn(dataCenterId);
+ }
+ return templateName;
+ }
+
+ protected DomainRouterVO createOrUpdateInternalLb(DomainRouterVO
internalLbVm, final long id,
Review Comment:
fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]