Skip to content

Commit 5a484e6

Browse files
spark404jzb
authored andcommitted
[CLOUDSTACK-415] Workaround this problem for now
1 parent 0e34bcc commit 5a484e6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎server/src/com/cloud/network/NetworkManagerImpl.java‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3806,6 +3806,15 @@ public boolean restartNetwork(RestartNetworkCmd cmd, boolean cleanup) throws Con
38063806
if (!(network.getState() == Network.State.Implemented || network.getState() == Network.State.Setup)) {
38073807
throw new InvalidParameterValueException("Network is not in the right state to be restarted. Correct states are: " + Network.State.Implemented + ", " + Network.State.Setup);
38083808
}
3809+
3810+
if (network.getBroadcastDomainType() == BroadcastDomainType.Lswitch ) {
3811+
/**
3812+
* Unable to restart these networks now.
3813+
* TODO Restarting a SDN based network requires updating the nics and the configuration
3814+
* in the controller. This requires a non-trivial rewrite of the restart procedure.
3815+
*/
3816+
throw new InvalidParameterException("Unable to restart a running SDN network.");
3817+
}
38093818

38103819
// don't allow clenaup=true for the network in Basic zone
38113820
DataCenter zone = _configMgr.getZone(network.getDataCenterId());

0 commit comments

Comments
 (0)