Forum Discussion

Joel_Moses's avatar
Joel_Moses
Icon for Nimbostratus rankNimbostratus
Jun 25, 2013

Procedures/Subroutines for iRules have arrived in 11.4.0!

Everyone break out the celebratory champagne.

 

A long-requested feature for iRules has been support for procedures/subroutines. There have always been some issues with using the "proc" command directly - mainly related to how TMOS processes the events and how iRules plugs into how TCL procedures would work. But in 11.4.0 we can now write procedures to our hearts' content:

 

https://devcentral.f5.com/wiki/irules.call.ashx

 

What was delivered in 11.4 was a little more than JUST procedure support for a local iRule -- it allows you to create and call a procedure that exists in another iRule entirely, even without attaching that other iRule to your virtual server. This allows you to create a library of subroutines in one consolidated rule that can be called by other rules!

 

You'll hear more about this via DevCentral staff soon.

 

Read up on this new functionality -- iRules just got a whole lot more flexible than they already are.

 

Joel

 

4 Replies

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account

    As a (tiny) update, there's some more overview information on procs here: (https://devcentral.f5.com/wiki/iRules.Procs.ashx)

     

    I'll also be putting together a series of example procedures and posting them to the codeshare in the coming weeks, as well as knocking out some articles that get a bit more into the nitty-gritty of what procs are and how to make use of them, so stay tuned! ;)

     

    Colin