Forum Discussion
Robert_47833
Aug 01, 2012Altostratus
lb::select question
in the irule
if { xxxx} {
pool cjj$env
}
I want to define this $env at the top of this irule,however it should know which pool the traffic is sent,in my case it is cjjsomething.
can I use LB::select to firstly make sure which pool it use and then define the $env
?
if it can be done so,how to write irule
- dlg_23340CirrusRobbie, what do you mean "it should know which pool the traffic is sent"?
when HTTP_REQUEST { set POOL [substr [string tolower [HTTP::host]] 0 ":"] if { [catch { pool $POOL } ] } { set POOL default_pool } pool $POOL }
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