mirror of https://github.com/apache/cloudstack.git
[CLOUDSTACK-415] Workaround this problem for now
This commit is contained in:
parent
200703e9b8
commit
e24456f487
|
|
@ -3817,6 +3817,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.");
|
||||
}
|
||||
|
||||
_accountMgr.checkAccess(callerAccount, null, true, network);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue