BUG/MINOR: server: ignore 'enabled' for dynamic servers

This commit is an adaptation from the following patch introduced in 3.0
dev tree.

  250c19032f030a81dca01541e3c2947d117a041c
  BUG/MINOR: server: reject enabled for dynamic server

Instead of reporting an error on 'add server', 'enabled' keyword is
simply ignored. This guarantees that CLI API remains compatible for
stable versions. A warning has been added to signal this status before
the final message.

This should be backported up to 2.4. The warning should be removed on
2.7 and below versions to prevent error message flooding for users
stucked on older versions.

(cherry picked from commit 704415431ffb4b741349a68978c5abdcb6548f08)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit e4308e91b364834bb968d86e1c36ddc35b804de0)
[cf: warning removed following instruction]
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 62aa49ad98dc940435a83613fbbb4cf69bdcbe69)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 0058f377f39698668c6a2117bb95480bda229cd5)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed