cancel
Showing results for 
Search instead for 
Did you mean: 
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

$testvariable declaration is missing in iRule.

 

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