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.
---
Hello Vijay_E,
Thanks, I actually checked with two different code versions and it looks like it's behaving the , same the most specific match with starts_with , I understand what you're saying regarding the re-arranged internally DG order.
It would very helpfull if there was a way to verify it.
Those are unique key-value pair but some are most specific and some are more general.
Using "equals" doesn't solve our issue entirely becasue we don't want to insert inside the Datagroup exact URLs - starts_with takes into account the begining of the URL , so if we have Long URLS like this
"www.cnn.com/sports/liverpool/sundaygame/score"
there are also being taked care of and treated with the same Datagroup record!
If someone on F5 or anybody else has definite answer on that it would really help me understand.
Thanks again,
Adir
Bezeq Int.
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