Forum Discussion
Is there some sort of an iRule "include" statement?
What I'm looking for is a way to include library style iRules so I can maintain changes to reused iRule code in a single place.
5 Replies
- uni
Altocumulus
Unfortunately, no
- Kevin_Davies_40
Nacreous
You can simulate reusable code by separating it into different iRules. You can have multiple iRules of the same event and order them using priority. Then whenever you need to update your iRule, all the virtual's using it will update themselves when you save the changes.
when HTTP_REQUEST priority 300 { reusable code } when HTTP_REQUEST priority 500 { normal code } - Frank_30530
Altocumulus
As of 11.3 you can you functions as I recall. Functions are globally available, so you can have one iRule where functions are defined.
- nitass
Employee
you know irule procedure is available in 11.4.0, don't you? :-)
Procedures/Subroutines for iRules have arrived in 11.4.0!
https://devcentral.f5.com/questions/procedures-subroutines-for-irules-have-arrived-in-1140 - Colin_Walker_12Historic F5 Account
Procs are indeed how you would do this, and are new and awesome as of v11.4:
There will be lots more information and examples in coming weeks, so keep an eye out. ;)
Colin
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