Forum Discussion
Stanislas_Piro2
Sep 17, 2015Cumulonimbus
Hi,
your message is not formatted... and explanation are not clear...
the better way is to give examples...
I understand that you have 7 VS with:
- 1 pool with 2 members (hosted on same 2 nodes for every VS, only port is different) named pool_test_X (X from 1 to 7)
- 1 holding pool (hosted on same 2 nodes for every VS, only port is different) named holdingpool_test_X (X from 1 to 7)
- users from IPs 222.222.222.225 and 222.222.222.226 (in data group external_ip) must be directed to pool_test_X
- All other users must be directed to holdingpool_test_X
you can use following irule:
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
if { [class match [IP::remote_addr] equals external_ip] } {
pool $default_pool
} else {
pool holding_$default_pool
}
}
With this irule, the holding pool name must be holding_