kend
Jan 16, 2012Nimbostratus
iRule Syntax
I have an iRule where I am using the set command to create a pool name to a variable. The command is "set hostpool pool_$msrdp". The command works the way it is, but I want to add additional charact...
If you're trying to use a dynamically named pool you should use catch to handle errors where the pool name doesn't exist:
http://www.tcl.tk/man/tcl8.4/TclCmd/catch.htm
if {[catch {pool $my_pool} result]==0}{
Assigned $my_pool pool successfully
} else {
Failed to assign $my_pool pool
}
Aaron