]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: server: implement "from srv:"
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 9 Jul 2026 09:41:50 +0000 (11:41 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 3 Aug 2026 14:52:10 +0000 (16:52 +0200)
commit9d66cd53c5a5c0782656bbefd6d4d4afb997cd27
tree7df3425317068b3f913a54f6aa3e1cbe4f1211fa
parent1420edd834f142084330810dcf36ff6c977a6d25
MEDIUM: server: implement "from srv:"

Implement "srv:" notation for the "from" server keyword. This allows to
specify a server or default-server by its name. It may be optionnaly
prefixed by a backend name using a slash separator. If this is not the
case, lookup is performed under the backend where the current newly
created server instance is attached.

This is implemented by extending _srv_parse_from() to support "from
srv:" argument value. An internal function lookup_srv_be_arg() is
defined to parse the argument of the form "[<be>/]<srv>". This is
similar to already existing lookup functions such as cli_find_server(),
however there is some differences which forces to have duplicated code
for the moment.
doc/configuration.txt
doc/management.txt
reg-tests/server/from_keyword.vtc
src/server.c