Forum Discussion
Olowndez
Sep 28, 2020Nimbostratus
iRule error elseif undefined procedure
Hello guys: I am trying to configure an iRule that performs load balancing based on the client IP. I need to load balance based on entire networks and based on some specific IP address. Those entire...
- Sep 29, 2020
What software version are you running? I wasn't able to reproduce the issue in v14.1.2.7.
I imagine you're running into something like what's described in this other DevCentral post.
You can try restructuring your iRule as follows to see if the error goes away:
when CLIENT_ACCEPTED { if { [class match [IP::client_addr] equals My_NETS] } { pool pool_A snatpool snat_pool_A } elseif { [IP::addr [IP::client_addr] equals 172.17.0.20] } { pool pool_B snatpool snat_pool_B } elseif { [IP::addr [IP::client_addr] equals 192.168.20.10] } { pool pool_C snatpool snat_pool_C } }
Olowndez
Sep 30, 2020Nimbostratus
Hello Andrew:
Thank you very much..! As you recommended, I restructured the iRule and it worked like a charm. :)
Regards.
Omar
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