brahim94_11525
Aug 22, 2011Nimbostratus
Apply multiple Irule on VS with the same trigger event
Hi,
I have something strange on my VS configuration. Indeed, I can apply multiple Irule with the same event (CLIENT_ACCEPTED) on one VS.
It's working without error and warning. Is it normal ? Because I know we cant use several Irule with the same Event on a VS.
Below the irule:
IRULE_1:
when CLIENT_ACCEPTED {
set ::var_test "toto"
}
IRULE_2:
when CLIENT_ACCEPTED {
set dn_str [class match -value [IP::local_addr] equals $::var_test ]
if { $dn_str eq "" } {
log local0. "Error"
forward
} else {
if { $dn_type eq "toto" } {
log local0. "node"
set ip "192.168.1.1"
node $ip
} elseif { $dn_type eq "tata" } {
log local0. "pool"
pool ::var_test
} else {
log local0. "invalid"
}}
}
Thank you