Forum Discussion

Archie_128388's avatar
Archie_128388
Icon for Nimbostratus rankNimbostratus
May 26, 2016

Passing variables directly from iApps to TMSH.

Try as I might I just can't seem to work out how to get an iApp to pass a command to TMSH. I am trying to automate (via an iApp) the setup of around 300 GRE tunnels. I've created the iApp at the pr...
  • Greg_Crosby_319's avatar
    May 26, 2016

    This is useful for when scripting tmsh: Documentation for tmsh scripting Commands.

     

    Looks like tmsh create is the syntax you are looking to use here.

     

    app::config procedure is nice as it returns the object name of the object created and handles the appropriate tmsh scripting command based on input (create/modify/delete). Although, you will need to escape brackets and a few other characters such as backslashes.