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:
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.
I used a proc for the yubikey 2-factor solution I wrote up, though I removed it for the article since 11.4 had not yet been released. The wiki entry for that solution, however, has the proc included.
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! ;)