Forum Discussion
Jeff_92092
Nimbostratus
Jan 29, 2013irules is conflicting with last resort pool
Here is our wideip configuration
wideip {
name "www.test.com"
alias "test.com"
pool_lbmode rr
partition "Common"
last resort pool "last-test-pool"
pool "www-test-pool"
pool "www-test-pool-v6"
rule "test-ipv6-irule"
}
The following irules handles A and AAAA requests. But it returns last-test-pool in stead of www-test-pool for A request. (I guess it's because "last resort pool" is above other pools in the configuration)
should we just add logic of "last resort pool" in the irules and get rid of "last resort pool" configuration? any suggestions? Thanks very much.
when DNS_REQUEST {
set DEBUG 0
if { $DEBUG } { log local0. "RRtype [DNS::rrtype], WIP [wideip name], Pools [pools -list]" }
Ensure no pool selected from a previous request
unset -nocomplain selected_pool
if {[DNS::rrtype] eq "A"} {
set selected_pool [lsearch -inline -not [pools -list green] *v6]
} elseif {[DNS::rrtype] eq "AAAA"} {
set selected_pool [lsearch -inline [pools -list green] *v6]
}
if { [info exists selected_pool] and not [string equal "" $selected_pool] } {
if { $DEBUG } { log local0. "Selecting $selected_pool" }
pool $selected_pool
}
}
No RepliesBe the first to reply
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