Forum Discussion
Kevin_Davies_40
Nacreous
Sep 06, 2010Globals 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...
hoolio
Cirrostratus
Sep 07, 2010I think variables in the static:: namespace are only sync'd across the TMM's during RULE_INIT. Any changes to the static:: variable in RULE_INIT should work fine. Changes to static:: variables after RULE_INIT won't be synched. Checking if the static:: variable exists should always work (assuming you're not unsetting the variable in a rule). If you're using true global variables, then the VS should be demoted automatically from CMP and only run on one TMM instance.
As Naladar suggested, if you're seeing that 'info exists' test fail, it would help if you could post the iRules you're testing with. You could also open a case with F5 Support to investigate the issue further.
Aaron
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