[CLOUDSTACK-415] Workaround this problem for now

This commit is contained in:
Hugo Trippaers 2012-10-29 09:26:14 +01:00 committed by Joe Brockmeier
parent 0e34bcc777
commit 5a484e65f6
1 changed files with 9 additions and 0 deletions

View File

@ -3806,6 +3806,15 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
if (!(network.getState() == Network.State.Implemented || network.getState() == Network.State.Setup)) {
throw new InvalidParameterValueException("Network is not in the right state to be restarted. Correct states are: " + Network.State.Implemented + ", " + Network.State.Setup);
}
if (network.getBroadcastDomainType() == BroadcastDomainType.Lswitch ) {
/**
* Unable to restart these networks now.
* TODO Restarting a SDN based network requires updating the nics and the configuration
* in the controller. This requires a non-trivial rewrite of the restart procedure.
*/
throw new InvalidParameterException("Unable to restart a running SDN network.");
}
// don't allow clenaup=true for the network in Basic zone
DataCenter zone = _configMgr.getZone(network.getDataCenterId());