Forum Discussion
Lerna_Ekmekciog
Nimbostratus
Aug 11, 2005which iRules reference this pool
Hello,
I'm using iControl sdk 9.0. I'm working on a Java program that pushes a given config of a load balancer obtained from a database to the local box.
Is there a programatically easy way to check which iRules a pool is referenced by? I can see query_rule method but this requires a parse of the rule_definition.
RuleDefinition[] query_rule(
in String[] rule_names
);
where RuleDefinition is a struct with following fields
rule_name String The rule name.
rule_definition String The rule text/definition.
- I think you meant to check which iRules a virtual server is reference by. Pools and Rules are both resources applied to a virtual server.
- Lerna_Ekmekciog
Nimbostratus
Joe, - No problem. Since rules are just stored as text internally and processed at runtime there are now ways to speed up the lookup aside from searching through the text of a rule and searching for the given pool name.
when HTTP_REQUEST { set pool_to_use "pool1" if { [HTTP::uri] ends_with "foo"} { pool $pool_to_use }
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