Forum Discussion

Pepi_71346's avatar
Pepi_71346
Icon for Nimbostratus rankNimbostratus
May 17, 2010

Call a code or other irule from an irule

Hi all,

 

 

I need your help :-).

 

I need to use an irule from other irule. I know that it's not possible to call an irule from other but I don't know if there is a way to create a code block like a function, so I can call this function from my irule.

 

 

Thanks in advance,

 

Pepi

 

2 Replies

  • Hi Pepi,

     

    Irules is locked down so you can not make function calls from iRules. However, it's possible to pass variables from one event to another but within the connection via Global variables. Another method which I remember is that if you are running core 9.4 or higher you can use the virtual which can send the request to another virtual that contains another iRule.

     

     

    I hope this helps,

     

    Bhattman
  • There has been talk of user-defined functions, but it hasn't happened yet. See this post for details:

     

     

    CR96170 - Support for user defined functions

     

     

    http://devcentral.f5.com/Forums/tabid/1082223/asg/50/showtab/groupforums/aff/5/aft/21564/afv/topic/Default.aspx

     

     

    Aaron