RE: the order of evaluation of acl's

2014-11-06 Thread jeff saremi
Could someone be kind enough to take a stab at this? It is really important for 
us to know this. And the documentation just is not clear at all.
thanksJeff

From: jeffsar...@hotmail.com
To: haproxy@formilux.org
Subject: the order of evaluation of acl's
Date: Fri, 24 Oct 2014 08:12:43 -0400




What is the order of evaluation of 'and's and 'or's in a use_backend clause?

This is what the docs say:
 [!]acl1 [!]acl2 ... [!]acln  { or [!]acl1 [!]acl2 ... [!]acln } ...

and apparently i cannot use paranthesis to group them. However i need to write 
something like the following:
use_backend some_backend if ( ( acl1 acl2) or (acl3 acl4) ) or acl5


  

RE: the order of evaluation of acl's

2014-11-06 Thread Lukas Tribus
 Could someone be kind enough to take a stab at this? It is really 
 important for us to know this. And the documentation just is not clear 
 at all. 

Whats wrong with the existing replies?
http://thread.gmane.org/gmane.comp.web.haproxy/18827/focus=18984



Lukas

  


RE: the order of evaluation of acl's

2014-11-06 Thread jeff saremi
my apologies. This was already answered. Somehow when i checked my posting in 
Marc list it didn't show me the thread of conversation.
Sorry about that


 From: luky...@hotmail.com
 To: jeffsar...@hotmail.com; haproxy@formilux.org
 Subject: RE: the order of evaluation of acl's
 Date: Thu, 6 Nov 2014 15:49:43 +0100
 
  Could someone be kind enough to take a stab at this? It is really 
  important for us to know this. And the documentation just is not clear 
  at all. 
 
 Whats wrong with the existing replies?
 http://thread.gmane.org/gmane.comp.web.haproxy/18827/focus=18984
 
 
 
 Lukas
 
 
  

Re: the order of evaluation of acl's

2014-10-29 Thread Baptiste
On Tue, Oct 28, 2014 at 5:42 PM, Conrad Hoffmann con...@soundcloud.com wrote:
 Hi,

 On 10/24/2014 02:12 PM, jeff saremi wrote:
 What is the order of evaluation of 'and's and 'or's in a use_backend clause?

 This is what the docs say:
  [!]acl1 [!]acl2 ... [!]acln  { or [!]acl1 [!]acl2 ... [!]acln } ...

 and apparently i cannot use paranthesis to group them. However i need to 
 write something like the following:
 use_backend some_backend if ( ( acl1 acl2) or (acl3 acl4) ) or acl5

 Why not just break it down into several lines:

 use_backend some_backend if acl1 acl2
 use_backend some_backend if acl3 acl4
 use_backend some_backend if acl5

 Especially if you care about the order of execution, this concern is
 much more explicitly expressed this way.

 Regards,
 Conrad
 --
 Conrad Hoffmann
 Traffic Engineer

 SoundCloud Ltd. | Rheinsberger Str. 76/77, 10115 Berlin, Germany

 Managing Director: Alexander Ljung | Incorporated in England  Wales
 with Company No. 6343600 | Local Branch Office | AG Charlottenburg |
 HRB 110657B


I agree with Conrad.
Just adding a piece of information here:
HAProxy will process the use_backend as they are written.
So the first matching will be used.

Baptiste



Re: the order of evaluation of acl's

2014-10-28 Thread Conrad Hoffmann
Hi,

On 10/24/2014 02:12 PM, jeff saremi wrote:
 What is the order of evaluation of 'and's and 'or's in a use_backend clause?
 
 This is what the docs say:
  [!]acl1 [!]acl2 ... [!]acln  { or [!]acl1 [!]acl2 ... [!]acln } ...
 
 and apparently i cannot use paranthesis to group them. However i need to 
 write something like the following:
 use_backend some_backend if ( ( acl1 acl2) or (acl3 acl4) ) or acl5

Why not just break it down into several lines:

use_backend some_backend if acl1 acl2
use_backend some_backend if acl3 acl4
use_backend some_backend if acl5

Especially if you care about the order of execution, this concern is
much more explicitly expressed this way.

Regards,
Conrad
-- 
Conrad Hoffmann
Traffic Engineer

SoundCloud Ltd. | Rheinsberger Str. 76/77, 10115 Berlin, Germany

Managing Director: Alexander Ljung | Incorporated in England  Wales
with Company No. 6343600 | Local Branch Office | AG Charlottenburg |
HRB 110657B



the order of evaluation of acl's

2014-10-24 Thread jeff saremi
What is the order of evaluation of 'and's and 'or's in a use_backend clause?

This is what the docs say:
 [!]acl1 [!]acl2 ... [!]acln  { or [!]acl1 [!]acl2 ... [!]acln } ...

and apparently i cannot use paranthesis to group them. However i need to write 
something like the following:
use_backend some_backend if ( ( acl1 acl2) or (acl3 acl4) ) or acl5