Get current default pool name in an iRule?
Is it possible to query the current value of the default pool on a virtual server in an iRule so that it can be compared to the connection's [LB::server pool] value?
Thanks.
EDIT
Thanks for the replies, but that's not exactly what I'm asking, so I'll attempt to clarify.
I can grab the connection's server pool name on CLIENT_ACCEPT. However, if a tcp connection is long lived, it's possible that we may have changed the default pool on the virtual server during the connection's lifetime.
Subsequent calls to [LB::server pool] will return the pool name that requests on that connection will load balance to, but I need to be able to grab the current default pool on the virtual server on, say, HTTP_REQUEST.
Is there a way to inspect the properties on a virtual server in an iRule?