Forum Discussion
How do I create Sequential or Linked iRules?
That get's a little more difficult as there isn't a direct way to call an iRule from another iRule. What you'll need to do is to create a session variable to handle state and you. Here's some pseudo code that may help
priority 100
when HTTP_REQUEST {
set PROCESS_IRULE_PRODSITE 1;
if { [HTTP::host] eq "testsite" } {
Assign target pool (if this is the default pool, this can be omitted).
pool testsite
Do not process prodsite iRule
set PROCESS_IRULE_PRODSITE 0;
}
}
priority 200
when HTTP_REQUEST {
if { $PROCESS_IRULE_PRODSITE == 1 } {
Do something
}
}
I think that's what you are going after.
-Joe
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