Forum Discussion
larry_williams2
Nimbostratus
Oct 24, 2014Nesting operations within an iRule
I have 9000+ client subnets grouped into roughly 5 ranges. For example, is it possible to have a single iRule that performs the following evaluation:
if client is in 172.16.0.0/16 then pool 1 ...
giltjr
Nimbostratus
Oct 28, 2014Simple if/elseif structure. I sure you could use tables/data group, but I never used them, so I don't know how.
if {[IP::addr [IP::client_addr]/16 equals 172.16.0.0]} {
pool POOL1
} elseif {[IP::addr [IP::client_addr]/16 equals 172.17.0.0]} {
pool POOL2
} elseif {[IP::addr [IP::client_addr]/16 equals 172.18.0.0]} {
pool POOL3
} else {
pool DEFAULT
}
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