Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

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

6
Rate this Question
Comments on this Question
Comment made 02-Sep-2013 by What Lies Beneath 6708
Sounds great, I can't wait to look into this.
0
Comment made 01-Mar-2014 by Patrik Jonsson 3524
This is awesome!
0

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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.

2
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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

0