Select member from within two pools via 4th octet value in URI
The following iRule works well, but I'm in need of some expert help altering this to accept a number equal to the 4th octet of the member IP, looking at more than one pool.
https://devcentral.f5.com/wiki/iRules.Select_pool_member_based_on_HTTP_query_string_parameter.ashx
I'd like to put this one iRule on two VIPs (so it's more generic) and be able to select a member from 2 pools (the default of each VIP) from either VIP. So, pass in member=23 and look at 2 pools at the same time to find 192.168.1.23
This is to facilitate a test request for application support to a server in either the live pool (using the live VIP) or the 'dark' pool (but via the same live VIP). the LTM VIPs alternate based on GTM setting. Both VIPs/Pools are on the same LTM.
I'm ok with coding the two pool names, so merge the members from both pools to find the matching member/IP.
Any help would be appreciated!