Forum Discussion
Akshay_SK
Nimbostratus
Feb 17, 2020Use of static keyword in iRules
I had used the static keyword in my iRule some days ago in RULE_INIT event since I wanted certain variables to be globally declared as follows : when RULE_INIT {
set static::windowSec 60
...
James_Thomson
Employee
Feb 18, 2020Based on this I think you're setting it correctly. Maybe you're using it in such a way in the irule that makes it "demote CMP".
Check this article out which explains what that means
https://devcentral.f5.com/s/articles/the101-irules-101-variables
Are you referencing it as $static::windowSec
- Akshay_SKFeb 21, 2020
Nimbostratus
Yes I am referencing it as $static::windowSec. Will this trigger a CMP demonition?
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