source_address to different pools

was going to create a Data Group list (call it “priority”) v9.3.1 with 4 IP addresses in the datagroup.

So that if any of these 4 addresses in the data group list “priority” hit the VS they will go to pool_A if anyone else hits the VS they will go to Pool_B

thinking something like this for irule:

when CLIENT_ACCEPTED {

if { [matchclass [IP::remote_addr] equals $::priority] } {

pool pool_A

} else {

pool pool_B

}

}

The VS looks like:

virtual xyz {

destination 1.1.1.1:24900

snat automap

ip protocol tcp

pool pool_A

}

the difference in pools pool_A has priority member active the pool_B does not.

pool pool_A {

min active members 1

member 10.10.10.10:24900

member 10.10.10.11:24900 priority 2

}

pool pool_B {

member 10.10.10.10:24900

member 10.10.10.11:24900

}

I suppose after applying the iRule to the VS it wouldn’t really matter which pool i left associated with the VS probably should make it pool_B

basically the question is to verify the iRule looks good and would give the desired response to pools. The rest is information and if have a better way to do it I am all ears.

thanks!

I suppose after applying the iRule to the VS it wouldn’t really matter which pool i left associated with the VS probably should make it pool_Byes, it does not matter. additionally, you may not define pool under virtual server.