Can I refer to an ACL within an aFlex?

Hi there, I have two pools that should explicitely be used depending on the clients source IP-adresses, and this already seems to works with the following aFlex example:

when CLIENT\_ACCEPTED \{
if \{ [IP::addr [IP::client\_addr] equals 10.10.10.0/24] \} \{ 

pool POOL1
} else {
pool POOL2

\}
\}

The problem is, that we have multiple networks, that should use POOL1 but not POOL2.
I think, I could fix this with multiple else-statements, but the idea is, to refere the if-statement to an ACL.
Does someone know if, and if so, how this is possible?
Or are there any better ideas to fix the service request?

Many thanks in advance
Hakan

Hi Hakan
you can use a class-list for each list of networks you require use pool1 or pool2

when CLIENT\_ACCEPTED\{
if \{ ( [CLASS::match [IP::client\_addr] CLserver1] ) \} \{

pool Group_server1

\}
if \{ ( [CLASS::match [IP::client\_addr] CLserver2] ) \} \{

pool Group_server2

\}
\}

CLserver1 and CLserver2 are two classlist created

Hi jyovani,

sounds well, I will try it with the class list.
Thanks!