Forum Discussion
Import iRule from iRule
You could certainly compress all the if statements into a single switch statement quite easily which would simplify things somewhat. Let me know if you need some example code.
You can't call one iRule from another unfortunately but if you have large blocks of code that are similar perhaps stored procedures might help (v11.4 onwards): https://devcentral.f5.com/articles/getting-started-with-irules-procedures. If it's not attractive, being smart in general around naming conventions and common code etc. can often be just as good.
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