Forum Discussion

Hugo_Borda_3566's avatar
Hugo_Borda_3566
Icon for Nimbostratus rankNimbostratus
Nov 24, 2005

break irules into smaller pieces

We have a large irule. We would like to break it into smaller TCL procs, may be more than one. Is that feasible? We are using 9.0.3.

 

 

Thanks Hugo
  • TCL procedures are not supported. You can, however, have more than one rule attached to a VIP. (And more than one VIP attached to an iRule).

     

     

    -Brian

     

     

    As a side note, this question is answered in a FAQ I am working on. Please take a look and let me know what you think http://www.vj.com/f5

     

     

    (Please note that this site has no affiliation with F5)

     

     

  • Thanks for your answer Brian. I do have already more than one iRule attached to a VIP and more than one VIP using the same iRule. Even if I go the route of breaking the iRule into multiple iRules then there is the obstacle of passing parameter(s) from one iRule to the other.

     

     

    It would be good if one day F5 allows us to create a "library of procedures" like HTTP::host or HTTP::URI, for example I could create Claritas::proc1 and Claritas::proc2. So we would be equaly happy even if the procedures are not in the "same" iRule. I guess there is no way to "enhance" the core. Do you know that?

     

     

    Thanks, Hugo
  • As far as I am aware there isn't a way to do this.

     

     

    -Brian

     

     

    P.S. - What is Claritas?
  • unRuleY_95363's avatar
    unRuleY_95363
    Historic F5 Account
    I'll comment that someday we might add functionality like this. For now, the cost of performance when invoking a procedure call is too large.