Forum Discussion
hooleylist
Aug 18, 2010Cirrostratus
I 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