Forum Discussion
Aug 09, 2005
Unfortunately on 4.x there is no method that takes as a parameter a pool and returns the virtuals that it's a member of. Your only course of action right now is to list out all the virtuals, call the LocalLB::VirtualServer::get_pool() method to return the pool for each virtual, and compare the pools. If a match occurs, then you know it's contained within the Virtual.
As for the pools from Rules, I do have something to help you with there. You can use the LocalLB::Rule::get_pool_associations() method to return the pools associated with the given rule
String [][] ITCMLocalLB::Rule::query_pool_associations
(
in ITCMCommon::StringSequence rule_names
);
This method has been available since BIG-IP v4.5.
-Joe