Forum Discussion
Dave_22402
Nimbostratus
Apr 19, 2010Irule switch - comment
How does one put comments into a Irule. This is on V10.
Here is an example of what I want to do - but the iRule Editor says the syntax is wrong:
when HTTP_REQUEST {
log loca...
hoolio
Cirrostratus
Apr 19, 2010Hi Dave,
That rule looks valid to me and the iRule editor on a 10.0.1 unit. What is the exact error you're seeing?
See this post for details on comments in the switch command:
http://devcentral.f5.com/Default.aspx?tabid=53&aft=1172116
and the TCL page for switch:
http://www.tcl.tk/man/tcl8.4/TclCmd/switch.htm
Edit: On a side note, it would be more efficient to use IP::addr to check the IP address:
http://devcentral.f5.com/wiki/default.aspx/iRules/ip__addr
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