Forum Discussion
TMaCEvans_92750
Jan 17, 2011Nimbostratus
nesting switch within aif statement
I'm trying to nest a switch statement in a if statement but am getting a parse error
[parse error: PARSE syntax 302 syntax\ error\ in\ expression\ \"\ switch\ -glob\ \[string\ tolower\ \[HTTP::u...
TMaCEvans_92750
Jan 17, 2011Nimbostratus
we have an application which uses websockets through various means we run these over port 80 due to firewall concerns
the first If part of the irule picks out this websocket traffic we found we needed to use http::disable to allow some of the methods this application employs to work through the F5
all this traffic should be going to pool3
we then have some more pools which the rest of the traffic should be directed to depending on the country version of the website they are trying to goto as determined by the uri containg the country code (thats the pool 2 bit i stripped out a load of other options and pools).
then all other traffic not going to the country specific version of the site should goto the default pool1.
the last else statement is just a fall back from before the I tried to implement the Switch and instead had a series of if else statements
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