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:
Sheng Yang 2012-11-14 14:23:47 -08:00
parent 5eba489198
commit 96c7bbeb86

View File

@ -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) {