Forum Discussion
Mark_Stradling_
Jan 07, 2016Cirrus
iRule Clean up: How to audit unused conditions?
I am trying to set up a system to audit iRule conditions. After years of building on an iRule, eventually some of the conditions fall out of use and developers are not always great about telling me w...
Kai_Wilke
Jan 07, 2016MVP
Hi Mark,
Its unfortunately not possible when using a
[switch]
command. A substitution enabled [switch]
syntax like...
switch -glob -- [HTTP::uri] [set y "/test1*"] - [set y "/test2*"] {
} [set y "/test3*"] {
} default {
}
... would always store "/test3*", since it substitutes everything before the actual comparsion starts. The
[switch -glob/exact]
comparsion has absolutely no room for any kind of [identity functions]
to trace the exit... 😞
Cheers, Kai
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