Forum Discussion

Uber_Nathan_202's avatar
Uber_Nathan_202
Icon for Nimbostratus rankNimbostratus
May 21, 2015
Solved

iApp variable scope

Hi all, I'm writing my first iApp to automate deployment of a few virtual servers, nodes, pools and iRule data-groups I have finished the presentation section and am now starting on the implement...
  • Fred_Slater_856's avatar
    May 21, 2015

    Scope is not the problem. Tcl treats anything inside curly braces as verbatim. Enclosed strings in quotes and escape each curly brace with a backslash.

     

    tmsh_modify "ltm data-group internal /Common/snat-map records add { $::private__privateAddr { data $::public__publicAddr }}"