On Thu, Apr 05, 2012 at 11:43:55AM +0200, Cyril Bonté wrote:
> Hi Willy,
> 
> 
> Le 05/04/2012 10:01, Willy Tarreau a écrit :
> >On Wed, Apr 04, 2012 at 12:57:20PM +0200, Cyril Bonté wrote:
> >>Proxy ids are unique whereas names can be used several times in the
> >>configuration. In order to prevent the ambiguity, the HTML form now 
> >>provides
> >>the backend id instead of its name (the name can still be provided in the 
> >>POST
> >>data).
> >
> >BTW about this, a minor comment : the statement above is not exact since a
> >same name can only appear once for a same type in the config. You can't 
> >have
> >to similarly named backends, nor a backend and a "listen" sharing the same
> >name. Only a frontend and a backend may use the same name (used to ease
> >conversion from listen to front+back).
> 
> OK I guess where I missed something during my tests.
> My test file declared several backends with the same name and it 
> worked...but i didn't add a "use_backend" or "default_backend" keyword 
> in any frontend to use them, which is valid for haproxy but has no sense 
> for such administration tasks ;-)

You're right, in fact it only emits a warning, not an error :-)

Cheers,
Willy


Reply via email to