This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.

⚠️ We've moved!

Hi there!

To reduce project dependency on 3rd party paid services the StackStorm TSC has decided to move the Q/A from this forum to Github Discussions. This will make user experience better integrated with the native Github flow, as well as the questions closer to the community where they can provide answers.

Use 🔗 Github Discussions to ask your questions.

Multiple ssh connections in an action-chain

Hi,

I have an action-chain workflow with 5 actions.
Each action needs to send some CLI commands on a router (cisco/juniper).

We use paramiko to make connection to this router in every action ! For 5 actions I have to make and teardown ssh connection - 5 times which is not effective.

Is there a way to make connection only once and reuse it in subsequent actions?

I tried returning the ssh-connection-object in first action to reuse it in subsequent actions, but st2 doesn’t recognize the type. Only string, object (JSON), integer are supported.

Thanks !