cjunior_138458
Dec 16, 2015Altostratus
LTM Policy and iRule together
We have a customer that uses LTM policy because he need more friendly visibility than a iRule script acknowledgment, though, there are hard features that need to be done in iRules and it can cause some conflicts. I've been researching some way to work mixing Policy and LTM iRule and I don't know yet. Meanwhile, I created a semaphore variable in the policy rule and then check it in the iRule script whether to go on. If var not exists, iRule will do the job, otherwise, exit.
For example:
Policy with dynamic forwarding rules:
iRule with static treatment:
when HTTP_REQUEST {
if { [info exists disable_irule] } {
unset disable_irule
event disable all
return
}
}
What do you think about it? I did something unnecessary?
What is the best approach?