Forum Discussion
Kalyan_Reddy_Da
Nimbostratus
Sep 03, 2010Irule with Datagroup External file is not working. Please help
Hi friends,
I am new for writing irules.
I have a requirement where we have 1000 pools and for each pool users will be accessign with different URI's.
Example:
Pool1 : ...
naladar_65658
Altostratus
Sep 03, 2010So I think it would look like this rewritten:
when HTTP_REQUEST {
set URIPOD [string tolower [getfield [HTTP::uri] "/" 2] ]
if { [class match -value $URIPOD equals dg1] } {
set myPool [class get $URIPOD dg1 " "]
pool $myPool
}
}
Edit: Added -value and class getRecent 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
