Forum Discussion
Functions for simulating CMP friendly global vars
Saw Aaron's post on his work using the session command to simulate the use of incrementing global var's in order to fully support CMP (related to a different post)
Naturally, it requires several lines to read the current value, expr + 1, and then update the value, as opposed to a one line "incr ::gvar"
Is it possible to create a function that is outside the irules that seek to use CMP compatible gvar incrementing? So rather than declaring the same class in every irule to address this or just doing it inline with a few lines, can something like a global function be saved that can be called from within any irule with the target simulated gvar handle?
Thanks
M
- JRahmAdminwhy not use table incr?
- hoolioCirrostratusGood idea Jason. That solution was written pre-subtables.
- Colin_Walker_12Historic F5 AccountGood call Jason, this is exactly what table incr was built for, last I checked. ;)
Recent Discussions
Related Content
* 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