mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Shutdown the network when it fails to implement
This commit is contained in:
parent
db142eb467
commit
43c0190963
@ -1045,6 +1045,9 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
||||
} finally {
|
||||
if (implemented.first() == null) {
|
||||
s_logger.debug("Cleaning up because we're unable to implement network " + network);
|
||||
network.setState(Network.State.Shutdown);
|
||||
_networksDao.update(networkId, network);
|
||||
shutdownNetwork(networkId);
|
||||
}
|
||||
_networksDao.releaseFromLockTable(networkId);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user