Forum Discussion
kend
Jan 16, 2012Altostratus
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...
hooleylist
Jan 16, 2012Cirrostratus
Hi 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
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