Closed plasorak closed 2 months ago
Here is a description of the changes in this PR:
describe_fsm
endpoint is a bit more complicated. It now accepts a PlainText
argument that can be
None
: in that case, the function returns a list of descriptions for the transitions accessible in the current state of the controllerall-transitions
: the function returns the descritions of all the transitions (accessible right now and not)describe_fsm
is used by the controller-shell
to build shell commands in the main of the shell (i.e. when the shell first connects to the controller).unified-shell
it's a bit more complicated, the controller
doesn't exist so the describe_fsm
endpoint doesn't exist, and the configuration isn't entirely specified. To achieve the same behaviour, the following was done:
drunc-unified-shell ssh-standalone path/to/config.data.xml session-name
.StatefulNode
object, and call the underlying function used by describe_fsm
to generate the shell commands.For users, this means:
fsm
before sending a transition to the controllerdrunc-unified-shell ssh-standalone data.xml session-name conf start --disable-data-storage 123 enable-trigger
)drunc-unified-shell ssh-standalone
to drunc-unified-shell ssh-standalone data.xml session-name
, and boot
takes no arguments anymore.For the last BP, this is
drunc-unified-shell ssh-standalone test/config/test-session.data.xml test-session
and not
drunc-unified-shell ssh-standalone data.xml test-session
This PR fixes the fsm command prefix saga. Description on Monday morning.