Forum Discussion
Zdenda
Cirrus
Apr 19, 2013Local variable used in more iRules but in one VIP - is it shared among VIP iRules?
Hi,
I am thinking about using variable in the way - when I enable some action (redirect), then another actions (another redirects) in another rules will be disabled.
All these are using dif...
Kevin_Stewart
Employee
Apr 19, 2013When 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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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