Forum Discussion

tacobell_14395's avatar
tacobell_14395
Icon for Nimbostratus rankNimbostratus
Aug 23, 2011

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

 

2 Replies

  • You 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 
       }
    }
    

    Aaron
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    Also 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.

     

     

    The more you know. ;)

     

     

    Colin