Forum Discussion
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_856Historic 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.
- jrenier_47051
Nimbostratus
Of course, i should have thought of that. How can I log those ? thanks
- Fred_Slater_856Historic 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 }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
