mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Update the router status after start network
Start network can possible start the router as well. If it's already started by start network, then we won't need to start it again.
This commit is contained in:
parent
5eba489198
commit
96c7bbeb86
@ -2690,6 +2690,12 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
|
||||
}
|
||||
}
|
||||
|
||||
//After start network, check if it's already running
|
||||
router = _routerDao.findById(routerId);
|
||||
if (router.getState() == State.Running) {
|
||||
return router;
|
||||
}
|
||||
|
||||
UserVO user = _userDao.findById(UserContext.current().getCallerUserId());
|
||||
Map<Param, Object> params = new HashMap<Param, Object>();
|
||||
if (reprogramNetwork) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user