mirror of https://github.com/apache/cloudstack.git
bug 11105: Fix router with disconnected host
We keep the stopped router there, but continue with the ones we can use. status bug 11105: resolved fixed
This commit is contained in:
parent
aa8e073e09
commit
fbd9e2159d
|
|
@ -1048,11 +1048,14 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
|
|||
}
|
||||
|
||||
for (DomainRouterVO router : routers) {
|
||||
State state = router.getState();
|
||||
if (state != State.Running) {
|
||||
router = startVirtualRouter(router, _accountService.getSystemUser(), _accountService.getSystemAccount(), params);
|
||||
HostVO host = _hostDao.findById(router.getHostId());
|
||||
if (host != null && host.getStatus() == Status.Up) {
|
||||
State state = router.getState();
|
||||
if (state != State.Running) {
|
||||
router = startVirtualRouter(router, _accountService.getSystemUser(), _accountService.getSystemAccount(), params);
|
||||
}
|
||||
runningRouters.add(router);
|
||||
}
|
||||
runningRouters.add(router);
|
||||
}
|
||||
return runningRouters;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue