mirror of https://github.com/apache/cloudstack.git
CS-16043: Using network based router rather than account for RVR detection
Backported from 3.0.x Reviewed-by: Alena Prokharchyk <alena.prokharchyk@citrix.com>
This commit is contained in:
parent
f8f5c53774
commit
061f7c8b82
|
|
@ -1425,7 +1425,7 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
|
|||
DataCenterDeployment plan = new DataCenterDeployment(0, null, null, null, null, null);
|
||||
DomainRouterVO result = null;
|
||||
assert router.getIsRedundantRouter();
|
||||
List<DomainRouterVO> routerList = _routerDao.findBy(router.getAccountId(), router.getDataCenterIdToDeployIn());
|
||||
List<DomainRouterVO> routerList = _routerDao.findByNetwork(router.getNetworkId());
|
||||
DomainRouterVO routerToBeAvoid = null;
|
||||
for (DomainRouterVO rrouter : routerList) {
|
||||
if (rrouter.getHostId() != null && rrouter.getIsRedundantRouter() && rrouter.getState() == State.Running) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue