Ken_Wong_48678
Dec 21, 2007Historic F5 Account
select virtual server in iRule
Hi,
I want to the iRule to select another virtual server based on the selected memeber. The iRule shown below, I can see the log in ltm log but cannot use the vs1 or vs2...any idea? Thansk!
when LB_SELECTED {
if { [LB::server addr] eq "192.168.20.1" } {
virtual vs1
log local0. "vs1 selected"
}
elseif { [LB::server addr] eq "192.168.20.2" } {
virtual vs2
log local0. "vs2 selected"
}
}
Regards,
Ken