Forum Discussion
tacobell_14395
Aug 23, 2011Nimbostratus
Basic question on Irules
Basic question, besides removing the string how can i basically add a REMARK before a string....i am trying to simply not log but want to remark ( or do not use ) the line that starts with log...make sense???
when HTTP_REQUEST {
log local0. "client IP is [IP::client_addr]"
if { not [matchclass [IP::client_addr] eq address_datagroup] } {
log local0. "[IP::client_addr] is accepted
- hooleylistCirrostratusYou can comment out a line using a hash ():
when HTTP_REQUEST { log local0. "client IP is [IP::client_addr]" if { not [matchclass [IP::client_addr] eq address_datagroup] } { log local0. "[IP::client_addr] is accepted } }
- Colin_Walker_12Historic F5 AccountAlso worth noting: Commented lines (lines beginning with a hash as Aaron mentioned above) are not compiled into your byte code that is interpreted by TMM. This means that comments have no effect on overhead of your iRule.
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