Forum Discussion
Colin_Walker_12
Aug 03, 2006Historic F5 Account
There isn't currently a mechanism for calling iRules in a function-like manner as you described. The closest I've seen people come is to make the iRule read from a class to fill in the info specific to the Virtual it's assigned to, then create just that class of info for each Virtual.
You'd still be copying and pasting the iRule around, but at least you wouldn't have a seperate version of the rule for each Virtual, just a seperate class.
Colin