Forum Discussion
Anthony_Hatch_3
Nimbostratus
Apr 01, 2011iRule Syntax Requirement for Data Group Names
Today we received the following error on our LTM: err local/tmm3 tmm3[7053] 01220001 TCL error: rewrite_mstatic-irule - ambiguous option "-": must be -all, -index, -element, -name, ...
hoolio
Cirrostratus
Apr 04, 2011The double hyphen terminates the flags passed to a command. The curly braces only escape special characters in the name of the datagroup--not in the names of the elements.
If your datagroup is listed as the first parameter for a command and the name of any datagroup starts with a hyphen, then you'd need to use the double hyphens. If it's the second parameter in the command, then it depend on whether the first parameter could have a leading hyphen.
It can't hurt to always use the double hyphens or curly braces for the datagroup name. But it's not necessary in most scenarios.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects