CodeShare
Have some code. Share some code.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner
KT_271103
Nimbostratus
Nimbostratus

Problem this snippet solves:

when LB_FAILED { switch $test { 1 { HTTP::fallback "http://maintenance1.example.com/" return } 2 { HTTP::fallback "http://maintenance2.example.com/" return } }

}

How to use this snippet:

Can explain above given Irule?

Code :

when LB_FAILED { 
    switch $test {
        1 {
            HTTP::fallback "http://maintenance1.example.com/"
            return
        }
        2 {
            HTTP::fallback "http://maintenance2.example.com/"
            return
        }
    }
 
}

Tested this on version:

11.6
Comments
Samir_Jha_52506
Noctilucent
Noctilucent

$test
variable declaration is missing in iRule.

Version history
Last update:
‎24-Jul-2016 23:11
Updated by:
Contributors