Forum Discussion
TWSS_18275
Feb 21, 2008Nimbostratus
Nested iRules
Is it possible to call an iRule from within an iRule?
For example:
rule rule_serv_id_https
when HTTP_RESPONSE {
set serv_ip [getfield [IP::server_addr] "." 3]...
hooleylist
Feb 21, 2008Cirrostratus
Hi,
You can't call one rule from another. You could combine the rules into a single rule. Or you could add the two rules to the virtual server and they will be triggered according to the priority (or if no priority is specified, then the order they're listed for the VIP). For details on priority, check the wiki page: (Click here).
As your rules look to be completely unrelated, you could keep the code in separate rules and add them to the VIP together. Priority in this case wouldn't matter as nothing in either rule would conflict with the other.
Aaron
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