Forum Discussion
GTM ignores two conditions in a irule
Hi there,
I have requirement to combine two following conditions in a irule at GTM. The GTM accepted the rule but do not execute the logic.
The DNS request should return pool test1's member if the request is from 10.0.0.0/8 and virtual server 10.10.10.8 is up. Even these two conditions are met, but the GTM still does not send test1's IP. No errors at GTM.
when DNS_REQUEST {
if {{[LB::status vs 10.10.10.8 80] eq "up"} and [IP::addr [ IP::client_addr]/8 equals 10.0.0.0]} {pool test1}
}
Or:
when DNS_REQUEST {
if {{[LB::status vs 10.10.10.8 80] eq "up"} && [IP::addr [ IP::client_addr]/8 equals 10.0.0.0]} {pool test1}
}
Did I do something wrong with about irule at GTM (version 9.3)?
Thanks,
Hong
1 Reply
- RiverFish
Altostratus
Did you get this figured out? I think you have to type in the name of the server followed by the name of the virtual server:
LB::status vs
And you have to use parenthesis to separate your "&&" conditions:
when DNS_REQUEST { if {([LB::status vs ltm-name-1 vs-name-1] eq "up") && ([IP::addr [ IP::client_addr]/8 equals 10.0.0.0])} { pool test1 } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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