mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge remote-tracking branch 'origin/4.12'
This commit is contained in:
commit
4449556aba
@ -376,8 +376,13 @@ public class NetworkHelperImpl implements NetworkHelper {
|
||||
final List<Long> networkIds = _routerDao.getRouterNetworks(router.getId());
|
||||
|
||||
DomainRouterVO routerToBeAvoid = null;
|
||||
List<DomainRouterVO> routerList = null;
|
||||
if (networkIds.size() != 0) {
|
||||
final List<DomainRouterVO> routerList = _routerDao.findByNetwork(networkIds.get(0));
|
||||
routerList = _routerDao.findByNetwork(networkIds.get(0));
|
||||
} else if (router.getVpcId() != null) {
|
||||
routerList = _routerDao.listByVpcId(router.getVpcId());
|
||||
}
|
||||
if (routerList != null) {
|
||||
for (final DomainRouterVO rrouter : routerList) {
|
||||
if (rrouter.getHostId() != null && rrouter.getIsRedundantRouter() && rrouter.getState() == State.Running) {
|
||||
if (routerToBeAvoid != null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user