Forum Discussion

pmilot_109870's avatar
pmilot_109870
Icon for Nimbostratus rankNimbostratus
Mar 02, 2011

iRule help

HI guys,

 

 

I used this iRule for a long time on 4.x. Replacing my old 1500 with LTM1600 and trying to convert the rule to work on the LTM. Anyone can point out what is wrong with the syntax ?

 

 

if (client_addr == 10.10.10.10) {

 

use pool Server_Node_1

 

}

 

else {

 

use pool Server_Node_2

 

}

 

 

Thanks

 

Pat

 

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    Try this:

    
    when CLIENT_ACCEPTED {
      if {[IP::client_addr] eq "10.10.10.10"} {
        pool Server_Node_1
      } else {
        pool Server_Node_2
      }
    }
    
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    Glad to hear it. ;) If you need any more help with the move let us know.

     

     

    Colin