For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

ReynaldoQ_14206's avatar
ReynaldoQ_14206
Icon for Nimbostratus rankNimbostratus
Jun 17, 2014

iRule coding

Hi...don't know much about coding in F5 just wanted to verify if this works as a negation (!) as in below.

elseif { [matchregion ldns !"BXB-IDMS-DNS"] } { if { [active_members pl_chi-mysql-read.gtm.intdata.com_3306] > 0 } {....

                                                            Thanks

4 Replies

  • I believe you'll need to move the not outside of the braces:

    elseif { not [matchregion ldns "BXB-IDMS-DNS"] } { 
     if { [active_members pl_chi-mysql-read.gtm.intdata.com_3306] > 0 } {....
    
    • Cory_50405's avatar
      Cory_50405
      Icon for Noctilucent rankNoctilucent
      Either one will work. Sometimes it's easier to understand upon glancing at it when you spell it out instead of using symbols. End result is the same though.