Don't allow to enable remote access vpn when domR is in Starting state

This commit is contained in:
alena 2011-02-07 17:36:24 -08:00
parent 6d7b4e3c7a
commit 49392355b8
1 changed files with 1 additions and 1 deletions

View File

@ -1108,7 +1108,7 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
s_logger.warn("Failed to start remote access VPN: no router found for account and zone");
throw new ResourceUnavailableException("Unable to apply lb rules", DataCenter.class, network.getDataCenterId());
}
if (router.getState() != State.Running && router.getState() != State.Starting) {
if (router.getState() != State.Running) {
s_logger.warn("Failed to start remote access VPN: router not in running state");
throw new ResourceUnavailableException("Unable to assign ip addresses, domR is not in right state " + router.getState(), DataCenter.class, network.getDataCenterId());
}