Forum Discussion
what is the Pool limit to do URI redirection using irule
Hi ,
May i know if i can create a VIP with out default pool and do redirection based on uri to specific pool using LTM Policies and datagroups ? and May i know what happens when the condition fails ? Is there a a way we can return a generic error or response if the condition fails?
Thanks and Regards ,
Jagadeesh
Jagadeesh You absolutely can and it would be the following.
when HTTP_REQUEST priority 500 {
set URI [string tolower [HTTP::uri]]
if { [class match -- ${URI} eq CLASS-URI-TO-POOL] } {
set TEMP_POOL [class match -- -value $URI eq CLASS-URI-TO-POOL]
pool ${TEMP_URI}
} else {
HTTP::respond 400 content "Bad Request page" "Content-Type" "text/html"
return
}
}
- JagadeeshOct 05, 2023Altostratus
So May i know if have to use both irule and Policies in this case ?
- Daniel_WolfOct 05, 2023MVP
It's an either iRule or Local Traffic Policy decission. Last time I tried something like this with LTP, they could read from a datagroup but not use the return value.
In other words, you would have to build and maintain a VERY LARGE Local Traffic Policy. With iRules it's just a datagroup, that you can easily maintain from the REST API.
Recent Discussions
Related Content
* 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