Forum Discussion
hooleylist
Sep 20, 2012Cirrostratus
You can't actually use a switch statement to evaluate subnets. The original if/elseif/.../else iRule should work. If that's not working you could add debug logging to each condition and check the logs in /var/log/ltm.
It would be more efficient to add the subnets and pool names to an IP address data group and use the class command to perform the lookup:
https://devcentral.f5.com/wiki/iRules.class.ashx
Aaron