Forum Discussion
kend
Altostratus
Jan 16, 2012iRule 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...
hoolio
Cirrostratus
Jan 16, 2012Hi Ken,
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
