Forum Discussion
Need help on Understanding mentioned iRules
Hi CJ,
This is perfect, will spend some more time on your reply and back to you/forum in case of any query.
Well...sorry but i missed to add 02 more iRules in my prior post,
5) iRule-5
when HTTP_REQUEST {
set app_pool [class match -value -- [string tolower [HTTP::uri]] starts_with services_produat_redirect_class]
if {$app_pool ne ""} {
pool $app_pool
} else {
pool abc_uat_pool1
}
}
Here : what is this service "services_produat_redirect_class" , Is this a custom one or pre-defined one...if custom then..where should i find and check from GUI that what all configuration has been defined under this service.
++++++++++++++++++++++++
6) iRule-6
when HTTP_REQUEST {
set app_pool [class match -value -- [string tolower [HTTP::uri]] starts_with services_redirect_class_8085]
if {$app_pool ne ""} {
pool $app_pool
} else {
return
}
}
Here : what is this service "services_redirect_class_8085" , Same query as in iRule-5...Is this a custom one or pre-defined one...if custom then...where should i find and check from GUI that what all configuration has been defined under this service.
- cjuniorJun 10, 2020Nacreous
These data groups are custom defined. You find all ltm data groups on menu:
Local Traffic >> iRules >> Data Group List
The rules are searching for a pool name based on URI on within dg, then if found (not equals empty), request are send to this pool name, otherwise return or send to a default pool.
Regards.
- Jimmy20Jun 10, 2020Nimbostratus
So here by "$app_pool" meaning a default pool only.
- cjuniorJun 10, 2020Nacreous
Not exactly, this variable is the result from "class match" that search for pool name based on URI, so, it's default for that uri.
Think the default pool for all rest would be the "abc_uat_pool1" on rule #5 and for rule #6 some predefined pool, as a default pool set on virtual server.
Regards.
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