Forum Discussion
janholtz
Altostratus
Jul 20, 2010Simplist irule v9.x to v10.1
Hi all
I have an extremely simple irule that currently uses datagroups:
-------------------------------------------------------------------------------------------------
when CLIENT_ACC...
hoolio
Cirrostratus
Jul 20, 2010$static::variable_name should only be used as global variable replacements that aren't changed after RULE_INIT runs. Their value isn't synchronized across TMMs after RULE_INIT. An example case for using static:: variables is setting a debug value (set static::my_rule_debug 1) or other configuration options that apply for all connections and don't need to change over the course of connections.
As far as I'm aware, static::class_name wouldn't work for accessing a datagroup (aka class).
We had a discussion on variable scope in v10 in the thread below. SMP and Jason provided some good info in it.
v10 - local vs. global vars
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/afv/topic/aft/1172260/aff/5/showtab/groupforums/Default.aspx
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