I have an iRule that I want to use with different VIPs where each VIP may have a different default pool specified in the VIP configuration.
I’m wondering if I can generically reference the default pool within the iRule, so it will send traffic to different pools depending on which VIP calling the iRule.
I.E.:
when HTTP_REQUEST {
switch -glob [HTTP::path] {
“/abc/proxy.jsp” {
pool default <--the default pool for the VIP to which this iRule is applied
}
“/xyz*” {
pool xyz_pool
}
…
default {
pool def_pool
}
}
}
Thanks,
-Funkdaddy