Forum Discussion
F5 iRULEs lack user defined functions (e.g. TCL proc) how about a macro or pre-processing capability
F5 iRULEs lack user defined functions or procedures (TCL proc)
As my IRULEs get more and more complex I find myself getting more and more frustrated that I can not write a TCL proc for recurring functions (code reuses). I know there must be deep technological reasons that I can not write a subroutine today- I sure want too (and I don't care if I run single threaded).
How about a macro or pre-processing capability (in the F5 iRULE editor ) and the F5 BIG-IP LTM system this really shouldn't be hard as several macro solutions for TCL already exist like a 'C' pre-processor.
Even having MACROs (without procedures) that merely allow me to inline a standard function over and over again would be a god send in iRULEs development.
Thanks
- hooleylistCirrostratusHi Jon,
- Colin_Walker_12Historic F5 AccountProcs are definitely something the core PD team is looking at intently for future versions, but we don't have any details as to when or if that will make the cut just yet. As far as the editor feature, I'm sold. Let the harassment commence until Joe adds it. ;)
- hooleylistCirrostratusWe need to start a whiskey fund to get procs done sooner :D
- Colin_Walker_12Historic F5 AccountI'm game. I'll even donate part of my personal collection. ;)
- dave_seddon_201NimbostratusGreetings,
- hooleylistCirrostratusYeah, this really sucks not having procedures.
- Colin_Walker_12Historic F5 AccountAgreed, those are all great points. Some of them are things we're already poking at, some are good additions to the list. Thanks for the input!
- AaronB_8424Historic F5 Account
Just an FYI, procedures have arrived in 11.4.
- Michael_EarnharHistoric F5 Account
Also a nice tcl macro templating system has been added in 11.4
- M_QuevedoNimbostratusNOTE: f5 added procs in TMOS v11.4, see https://devcentral.f5.com/wiki/iRules.procs.ashx So the issues raised in this Q&A are obsolete!
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