-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Referencing embedded irules in AS3 declarations #227
Comments
I don't think it's "clearer" in any way. The first example already reads like "Here is a list of iRules", while the second one reads "Here is a list of iRules, but each element is not an iRule for some reason, but another object that contains a 'use' parameter which points to the iRule". Why does F5 recommend this way? It's just confusing. Is there any advantage to this besides supposed readability? |
Apart from the readability which, I agree, is arguable and subjective, depending on the person who reads the code, there is also a question of consistency in using irules and other objects in declarations. There are basically two ways to refer to irules, depending on the irule location. iRule embedded in the same declaration as the listener using it:
Shared iRule, installed in the /Common partition on the Big-IP:
Since the shared irules are referred to as Plus, there are also other objects that can be defined in a declaration and then referred to in that same declaration - for example health monitors. For those we already utilize the "use:" keyword and so this would be another point for the consistency reason. Example:
|
I'm proposing merely cosmetic change in how we reference irules within AS3 declarations.
How we currently reference irules from under a
listener
in AS3 declaration:Better (arguably), more "clear" way to reference irules, recommended by F5:
The only difference is the keyword
"use:"
in the proposed way.The text was updated successfully, but these errors were encountered: