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.
---
Hi Vijay_E,
I can use "equals" instead , but the thing I trying to understand is the expected behavior with "starts_with" and multiple keys inside Data groups that all match.
Does the Class match iterate througth all the keys inside the Datagroup and choose the longest / more exact match or does it just pick the first one it matches on?
Of course I can't really change the order of Datagroups entries , F5 just orangize these according to ABC order, not matter which one I entered first.
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