Skip to content

Commit 0e33ba8

Browse files
Murali Reddychipchilders
authored andcommitted
CLOUDSTACK-1368: Shared network - Not able to delete network because of java.lang.NullPointerException
Missed network destroy state transistion while 'events framework' merge. Before merge, network states were explicitly set. It was changed to go through state machine. This fix, introduces missing state transistions. Tested life cycle of both isolated and shared network Signed-off-by: Murali Reddy <murali.reddy@citrix.com>
1 parent ebc10b6 commit 0e33ba8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎api/src/com/cloud/network/Network.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ public enum State {
235235
s_fsm.addTransition(State.Implemented, Event.DestroyNetwork, State.Shutdown);
236236
s_fsm.addTransition(State.Shutdown, Event.OperationSucceeded, State.Allocated);
237237
s_fsm.addTransition(State.Shutdown, Event.OperationFailed, State.Implemented);
238+
s_fsm.addTransition(State.Setup, Event.DestroyNetwork, State.Destroy);
239+
s_fsm.addTransition(State.Allocated, Event.DestroyNetwork, State.Destroy);
238240
}
239241

240242
public static StateMachine2<State, Network.Event, Network> getStateMachine() {

0 commit comments

Comments
 (0)