Forum Discussion
Kevin_Davies_40
Nacreous
15 years agoGlobals not really global?
Hi,
In iRule A on VIP A I have set static::myversion "1.0" in iRule B on VIP B I have if {[info exists static::myversion] } { ...
The problem is the second test only works half...
Kevin_Davies_40
Nacreous
15 years agoThanks for the help guys,
I dumped it when it wasnt reliable. I will ensure I post a great deal more information in the future. Essentially I have stopped using globals entirely. In order to update a static global or any iRule that uses RULE_INIT you need to restart bigip to trigger the event. This is far from ideal in a production multi-customer environment. In the end it was better to use local vars as they are global across your iRules, then use the session uie table to store persistent information. This way when I update an iRule variable I dont have to take down the box to do it and its all CMP friendly.
Regards
Jarvil
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