Forum Discussion
bwagner444_1277
Nimbostratus
May 25, 2007Source based routing to multiple groups
This one is pretty straight forward jus tnot sure if I am using correct syntax or the proper use of a possible "or". Any help would be great...
Well so here we go. I have a requirement as fo...
hoolio
Cirrostratus
May 28, 2007That looks good with some minor edits. You can use 'or' to or the two tests together. And I'd use elseif's to ensure that you're only checking one condition if the previous test(s) failed. Lastly, you don't need to the quotes. Can you try testing this?
when CLIENT_ACCEPTED {
if {[IP::addr [IP::client_addr]/24 equals 10.20.30.0] or [IP::addr [IP::client_addr]/24 equals 10.20.32.0]}{
pool groupA_pool
} elseif {[IP::addr [IP::client_addr]/24 equals 10.20.33.0]}{
pool groupB_pool
} else {
pool groupC_pool
}
}Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
