Forum Discussion
juan_salinas_47
Nimbostratus
Jul 09, 2010issue with global variable in a simple irule
hi,
first of all, excuse my english.
i've implemented this simple irule:
when RULE_INIT {
set test 1
}
when CACHE_REQUEST timing on {
set httppath [string tolower [HTTP::path]]
log local...
hoolio
Cirrostratus
Jul 12, 2010If the only change you're making is to declare a global variable in RULE_INIT and TMM crashes, I think you've found a bug. I'd suggest opening a case with F5 Support.
For 10.x, if you want to maintain CMP compatibility, and you're wanting to use a variable that doesn't change and is accessible across all connections you can use 'set static::test 1' instead. See the CMP wiki page for details:
http://devcentral.f5.com/wiki/default.aspx/iRules/cmpcompatibility
Aaron
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