Forum Discussion
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
- What_Lies_Bene1
Cirrostratus
Sounds great, I can't wait to look into this. - JRahm
Admin
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.
- Colin_Walker_12Historic 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 - This is awesome!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com