Forum Discussion
breasoner_11658
Nimbostratus
Aug 16, 2010direct similar uris to their own pools via datagroup
Hi -
I have an iRule that was working just fine until I made a recent addition. The rule finds the uri and directs traffic to a pool based on the information contained in a datagroup: ...
hoolio
Cirrostratus
Aug 18, 2010I think the datagroup order is arbitrary, particularly after config reloads, so I'm not sure manually ordering them would be a long term solution. Also, I don't think the class functions return the most specific match for string searches. You could get the full class back as a TCL list using 'class get' and then iterate through the list looking for the longest match. Deb did something similar for 9.x in this example:
http://devcentral.f5.com/wiki/default.aspx/iRules/FindclassAgainstVariableLengthURI.html
Aaron
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
