chris_grice_248
Jan 25, 2017Nimbostratus
iApp tables?
Hi I am working on a simple IAPP to build Virtual Servers, pools etc. One of the drivers behind the iApp is so we can make sure our naming standard is followed.
I am trying to get the iApp to name the pool in this format
{location}_{FQDN}_{port}_pl
The location and FQDN I have got working. My pool port is defined in the below table ` section pool {
choice pool display "xxlarge" default "Yes"
optional ( pool == "Yes" ){
table members {
editchoice member display "large" tcl {
package require iapp 1.0.0
return [iapp::get_items ltm node]
}
string memberport display "small" required default "80"
validator "PortNumber"
}
What I would like to do is put the memberport string input into a variable and add that to the name. How do i set a variable that is referenced within a table. I cant put
set plport $::pool__members__memberport
for example.
New to iApps TCL so I hope that makes sense