For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

jrenier_47051's avatar
jrenier_47051
Icon for Nimbostratus rankNimbostratus
Nov 06, 2013

choise default option doesn't work

Hi guys,

Simple code : choice tcp_wan_name default "tcp-wan-optimized" display "xlarge" tcl { tmsh::run_proc f5.app_utils:get_items /ltm profile tcp } I would expect the tcp-wan-optimized to be shown as default when running the code, but it's not. Any idea what could be the trick ? Thanks

3 Replies

  • Fred_Slater_856's avatar
    Fred_Slater_856
    Historic F5 Account

    The default is only shown if it is one of the listed values, which in this case are returned by a tcl block. If you log the list returned from get_items, there will be some difference, most likely that the profile is known as /Common/tcp-wan-optimized.

     

  • Fred_Slater_856's avatar
    Fred_Slater_856
    Historic F5 Account

    The standard output from iApp implementation code logs to /var/tmp/scriptd.out. You could do something like this:

     

    choice tcp_wan_name default "tcp-wan-optimized" display "xlarge" tcl { 
        set rval [tmsh::run_proc f5.app_utils:get_items /ltm profile tcp]
        puts "tcp profile list: $rval"
        return $rval
    }