Forum Discussion
Jan 20, 2015
Hi Mariusz,
you can use a jump table (aka "switch") command to evaluate multiple conditions:switch [IP::remote_addr] {
"10.10.10.10" if {[LB::status vs Client_VPN_1] eq "up" } {
host 1.1.1.1
} else {
host 2.2.2.2
}
"20.20.20.20" if {[LB::status vs Client_VPN_2] eq "up" } {
host 3.3.3.3
} else {
host 4.4.4.4
}
}
I´m not aware of another shortcut to simplify the VS availability check.
Thanks, Stephan