Forum Discussion
Jeff_92092
Feb 22, 2012Nimbostratus
How to inherit a generic irules?
Hi, Guys. I am new to the irules business. Please help.
I need to create hundreds of irule on GTM box like below. (one rule...
Jeff_92092
Feb 27, 2012Nimbostratus
Here is an easy solution which works perfectly to my expection.
Create 1 irules for each webserver
server1-rules
when DNS_REQUEST {
set pool4 "server1-pool-v4"
set pool6 "server1-pool-v6"
}
I already created generic-v6-irules
when DNS_REQUEST {
if {[DNS::rrtype] eq "A" and [active_members $pool4] > 0} {
pool $pool4
} elseif {[DNS::rrtype] eq "AAAA" and [active_members $pool6] > 0} {
pool $pool6
}
}
Then apply both server1-rules and generic-v6-irules to the wide IP.
(server1-rules needs to be in front of generic-v6-irules. so pool4 and pool6 are defined)
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects