Forum Discussion
msalah_199040
Jun 24, 2015Nimbostratus
i have found a way to do this....thank you again for all your help...
when CLIENT_ACCEPTED { set first-octet [expr {[getfield [IP::client_addr] "." 1]}] if { [$first-octet <=128] { set DC_LOCATION 1} elseif { set DC_LOCATION 2} if { $::DC_LOCATION == 1 } and ([active_members pool_1] >= 1){ pool pool_1 persist source_addr } elseif { $::DC_LOCATION == 2 } and ([active_members pool_2] >= 1) pool pool_2 persist source_addr } elseif { ([active_members pool_1] >= 1) pool pool_1 persist source_addr } elseif { ([active_members pool_2] >= 1) pool pool_2 persist source_addr } }