Mar 27, 2026 - For details about updated CVE-2025-53521 (BIG-IP APM vulnerability), refer to K000156741.

Forum Discussion

David_Newman_10's avatar
David_Newman_10
Icon for Nimbostratus rankNimbostratus
Aug 23, 2005

Making iRules Modular

Is there a way for one iRule to call another iRule, so that rules can be called conditionally in a structured manner?

 

 

Thanks,

 

 

David

3 Replies

  • You can set the priority of events to control the order that they are fired.

     

     

    http://devcentral.f5.com/default.aspx?tabid=28&view=topic&forumid=5&postid=1798

     

    Click here

     

     

    You can also use global variables to "pass" information from one rule to another. So, the second rule in the chain could know whether to execute a section of code depending on what happend in the first event.

     

     

    -Joe
  • drteeth_127330's avatar
    drteeth_127330
    Historic F5 Account
    Well, I suppose that's one way to accomplish it somewhat. As Joe indicates, you can define multiple handlers for the same event. One of the handlers can terminate the rule event chain with the event disable command. However, this is really not the same thing as synthetic rule events. That is, the ability to raise an event from within a rule.