Forum Discussion
Class match with starts_with - Data group matching order
- Nov 28, 2019
It's "longest match". See https://clouddocs.f5.com/api/irules/class.html
---
Note: When using the equals operator on IP classes, or when using the starts_with or ends_with operators, if multiple possible matches are found in the class, then the longest match is always chosen. This is not true when using the contains operator. See the example below for more details.
---
Unfortunately, I am not sure how the DataGroup is parsed. This behavior may change over different code versions. I think the datagroup is re-arranged internally before it is parsed. When working with DataGroup, I think you should expect the ordering to change and try to have unique key-value pair.
Recent Discussions
Related Content
* 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