Forum Discussion

Michelle_Johns1's avatar
Michelle_Johns1
Icon for Nimbostratus rankNimbostratus
Jul 28, 2011

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

 

}

 

}

 

 

 

 

 

 

3 Replies

  • sorry, can you please go a little more in depth why you think topology wont work for you?
  • I have 2 LTMs: One in NC and one in CO

     

     

     

    NC LTM CO LTM

     

    --------- ------------

     

    NC VIP CO VIP

     

    NY VIP

     

     

     

    Because the NY VIP is actually in the NC Data Center, I cannot use topology.
  • Michelle,

     

     

    Did you ever get this resolved? Do you still need assistance?

     

     

    Anthony