Forum Discussion
Chris_Phillips
Aug 03, 2006Nimbostratus
Scoping variables
Hi,
I had a thread recently which lead to this wiki entry http://devcentral.f5.com/wiki/default.aspx/iRules/DestinationSnatUsingDNS.html and one instance of this iRule works fine, however as...
Colin_Walker_12
Aug 10, 2006Historic F5 Account
Well, it appears as though the only variable in that example that truly needs to be defined globally is the count variable. Since the rest are statics, they could be set for just that particular iRule, and things would be fine.
This would make it so all you had to do was change the name of the "count" variable between iRule permutations, which would be at least somewhat of an improvement.
Colin
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