Forum Discussion
Logical operands within Local Traffic Policy
Hello everybody,
About this subject, I have a question. Actually, I must deploy the rules below :
1 - if * ---> action : use Pool-1
2 - if * ---> action : use Pool-2
My difficulty here is how to differentiate the path fd/* and /* ? Because if I don't put the correct condition, I think that the "fd/" would be interpretated as part of the stat '' of the path 1, "/*".
So, I have some examples. Conditions that selects the Pool-1 :
-----> We have here "fd/", but it doesn't start the path after the url-host, so, it enters in the case of Pool-1.
Conditions that selects the Pool-2 :
Could you please help me with this ? Is the strategy important here ? The rule that treats the "fd" case must come before the general rule "/" ?
Thanks a lot. Best regards.
- svsApr 13, 2018
Cirrostratus
Basically it's up to your policy strategy, how the policy matches the rules. If your strategy is "first-match", you only need to make sure, that the order of the rules is correct and reflects your needs. So with first-match your rules should look like this:
Rule 1Condition 1: Host Header matches
Condition 2: URI starts_with /fd/
Action: Pool2
Rule 2Condition 1: Host Header matches
Condition 2: URI starts_with /
Action: Pool1In this the case the rules will be evaluated by order and the first rule, where the condition matches the current connection, will be processed.
Maybe it would be simpler to understand Rule 2 as the default rule and don't use any conditions. Every policy I create has a default rule at the bottom, without using any conditions and only execute an action.Hope that helps and makes things more clear.
Greets,
svs - brunocalcadoApr 13, 2018
Nimbostratus
Thanks a lot Sven. I will test on monday. Your solution with de default rule can help me a lot.
Have a nice weekend. BC
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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