Forum Discussion
3 Replies
Sort By
- Kevin_StewartEmployeeWhen multiple iRules are applied to a virtual server their events are combined, sometimes in an order that you didn't intend. The first thing I would recommend is using the priority tag in the event declarations to guarantee order. As for using a single local variable across iRules, in the same VIP, yes it should work but it's probably not the safest thing to do. If you're going to do this, I highly recommend that you apply [info exists ] checks and catch clauses where appropriate.
- ZdendaCirrus
Sorry, but could you paste some example please? I am not sure how I should appy that [ info exists]?
Thanks,
Zdenek
- What_Lies_Bene1CirrostratusHere's an example of checking that a variable exists;
if { [info exists lookup] and $lookup == 1 } { ... Note no $ symbol is used for the variable name with info as you are not referencing the variable value