mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6577: Disable service monitoring in RVR
(cherry picked from commit b9b623bccc)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Conflicts:
server/src/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java
This commit is contained in:
parent
dddc6488d4
commit
fac57a0a83
|
|
@ -2372,20 +2372,24 @@ public class VirtualNetworkApplianceManagerImpl extends ManagerBase implements V
|
|||
if (reprogramGuestNtwks) {
|
||||
finalizeIpAssocForNetwork(cmds, router, provider, guestNetworkId, null);
|
||||
finalizeNetworkRulesForNetwork(cmds, router, provider, guestNetworkId);
|
||||
|
||||
NetworkOffering offering = _networkOfferingDao.findById((_networkDao.findById(guestNetworkId)).getNetworkOfferingId());
|
||||
//service monitoring is currently not added in RVR
|
||||
if (!offering.getRedundantRouter()) {
|
||||
String serviceMonitringSet = _configDao.getValue(Config.EnableServiceMonitoring.key());
|
||||
|
||||
if (serviceMonitringSet != null && serviceMonitringSet.equalsIgnoreCase("true")) {
|
||||
finalizeMonitorServiceOnStrat(cmds, profile, router, provider, guestNetworkId, true);
|
||||
} else {
|
||||
finalizeMonitorServiceOnStrat(cmds, profile, router, provider, guestNetworkId, false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
finalizeUserDataAndDhcpOnStart(cmds, router, provider, guestNetworkId);
|
||||
}
|
||||
|
||||
String serviceMonitringSet = _configDao.getValue(Config.EnableServiceMonitoring.key());
|
||||
|
||||
if (serviceMonitringSet != null && serviceMonitringSet.equalsIgnoreCase("true")) {
|
||||
finalizeMonitorServiceOnStrat(cmds, profile, router, provider, routerGuestNtwkIds.get(0), true);
|
||||
} else {
|
||||
finalizeMonitorServiceOnStrat(cmds, profile, router, provider, routerGuestNtwkIds.get(0), false);
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue