Forum Discussion
patrick_osewal1
Dec 11, 2007Historic F5 Account
First attempt with address datagroup
Hello,
Below you will find my first attempt at using an address datagroup. My objective is to create a list of IP addresses in a class.
class1 and load balance them to pool1
...
Dec 11, 2007
Youv'e got a lot of extra braces in there. Your iRule can be simplified to the following:
when CLIENT_ACCEPTED {
if { [matchclass $my_client equals $::networks_class] } {
pool pool1
} elseif { [matchclass $my_client equals $::networks_class2] } {
pool pool2
} elseif { [matchclass $my_client equals $::networks_class3] } {
pool pool3
} else {
discard
}
}You didn't include it, but I'm assuming you are assigning the "my_client" variable with something like IP::remote_addr...
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
