Forum Discussion
smp_86112
Cirrostratus
Jun 23, 2010switch statement, [IP::addr], and varying subnet masks
I have an irule that uses a bunch of if statements that I'd like to consolidate into a single switch statement:
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr]/26 equals xxx.xxx.xxx.xxx] ...
smp_86112
Cirrostratus
Jun 24, 2010As I'm sure you probably know, the [IP::addr [IP::client_addr]] statement doesn't work like this. So I will either have to retain my numerous IF statements, or use a class as hoolio suggested.
Thanks again for the feedback.
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
