Forum Discussion
sandiksk_35282
May 01, 2019Altostratus
irule not working as expected
Issue with an irule ,from tcpdump dont see traffic hitting the backend servers in the pool.
when RULE_INIT {
set debug 1
}
when HTTP_REQUEST {
if {$debug} {
set L...
May 02, 2019
Hello sandiksk.
You have several mistakes in your iRule.
- Set a default condition in your switch sentence (in case of no matching condition)
- Remove ';' characters in your switch options
- You should use static variables in RULE_INIT to be CMP-compatible (see THIS)
-
If you are still having problems with 'debug' variable in logs, try to use a comparation statement like this ->
"
" or "if { $debug != 0 } {
" (to be CMP-compatible)if { $static::debug != 0 } {
KR, Dario.
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