Forum Discussion
MACTEP
Altocumulus
Feb 25, 2013Check if static variable exists before referencing to it
Hi All,
I have created an iRule performing DNS lookup and storing the result in static variable, so it could be referred from another iRule.
....
set static::my_variable "some v...
nitass
Employee
Feb 26, 2013you know changing static global variable (outside RULE_INIT) won't be synchronized to other tmm (it will change static global variable value on local tmm only), don't you?
This namespace is intended only for use with values that will not change. While it is possible to alter the value of a global variable in the static namespace, this value will not be propagated to other CMP nodes in the system. Therefore, doing so may lead to unexpected results. If you need to share information across CMP nodes, you should use the session or table commands instead.static wiki
https://devcentral.f5.com/wiki/irules.static.ashx
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
