Forum Discussion
uni
Altocumulus
Jan 28, 2010Testing for the pool name
Is it possible to test what pool is assigned to a virtual? Something along the lines of
if { pool == myPool }
hoolio
Cirrostratus
Jan 28, 2010Hi Stephen,
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects