Michelle_Johns1
Jul 28, 2011Nimbostratus
GTM irule to select a virtual, not a pool
I need a solution to select a virtual based on ldns. I cannot use simple topology because the NYpool virtual and the NCpool virtual are both hosted in the NC DataCenter. (I do not have an LTM in NY)
So, i was thinking of using an irule like the following, but I want to select a virtual in each site instead of having a pool for each site.
when DNS_REQUEST {
if { [matchregion ldns NY]} {
pool NYpool
} elseif { [matchregion ldns NC]} {
pool NCpool
} elseif { [matchregion ldns CO]} {
pool COpool
} else {
return
}
}