Skip to content

Commit

Permalink
Handle event _EV_START in state _IDLE in pysandesh statemachine
Browse files Browse the repository at this point in the history
Typically, the admin state is enabled/disabled from the test code.
When the admin state is disabled in state _ESTABLISHED, the state
transitions to _IDLE. When the admin state is enabled,
then the event _EV_START is enqueued in the statemachine. However,
the event _EV_START is not handled in state _IDLE.

Change-Id: I8defe05a026070f23359de356a00ccec45ddabb1
  • Loading branch information
Sundaresan Rajangam committed Feb 23, 2015
1 parent b510de3 commit c2f5747
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/python/pysandesh/sandesh_state_machine.py
Expand Up @@ -173,6 +173,10 @@ def _on_established(e):
'src' : State._IDLE,
'dst' : State._CONNECT
},
{'name' : Event._EV_START,
'src' : State._IDLE,
'dst' : State._CONNECT
},

# _DISCONNECT
{'name' : Event._EV_COLLECTOR_CHANGE,
Expand Down

0 comments on commit c2f5747

Please sign in to comment.