Forum Discussion
Eric_Werner_283
Nimbostratus
Aug 12, 2010Use of pipe in if statement
I'm trying to find out if I can configure an if statement that checks for one of a series of possible values, like this:
if { $avp_code == 304|305|309} {
do stuff
}
Is the syntax correct, or wou...
Eric_Werner_283
Nimbostratus
Aug 26, 2010Took a while, but finally got enough numbers to deem them useful. Here's the stats comparison between the version using switch and moving items to RULE_INIT vs. the original.
SwitchTotalFailAbortMinAvgMax
CLIENT_ACCEPTED800275223684644352
CLIENT _CLOSED40073802001620016
CLIENT_DATA811001482753843901069785
LB_FAILED000000
RULE_INIT000000
SERVER_CLOSED14001116550612240
SERVER_CONNECTED220062822512851138
SERVER_DATA46260041175222773468693
OriginalTotalFailAbortMinAvgMax
CLIENT_ACCEPTED400168291183235199242
CLIENT _CLOSED40058591994419944
CLIENT_DATA68210115632309014830115
LB_FAILED000000
SERVER_CLOSED150099958017920
SERVER_CONNECTED130099542989648987
SERVER_DATA28756044289221750341775
Looks like a HUGE savings in CLIENT_ACCEPTED, as predicted, but CLIENT_DATA and CLIENT _CLOSED appear to have increased a bit. Overall, if you take a summation of everything, there is still an overall savings happening.
I don't know if this is a really great representation, as we were more testing to check the functionality when passing AVP 309, which never seemed to happen in the first place (d'OH!), so I made the best of a fairly busted situation.
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
