uni
Jan 29, 2010Altostratus
Testing for the pool name
Is it possible to test what pool is assigned to a virtual? Something along the lines of
if { pool == myPool }
if { pool == myPool }
You can use LB::server to get the name of the VIP's default pool:
http://devcentral.f5.com/Wiki/default.aspx/iRules/lb__server
when CLIENT_ACCEPTED {
Save the name of the VIP's default pool
set default_pool [LB::server pool]
}
Aaron