summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorNicolas Vollmar <nvo@scaling.ch>2024-04-17 11:14:11 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-04-19 11:48:35 +0000
commit5a8310147b858ab85ed5a00fa6cb1f2e856f6a0c (patch)
treedf34e2aa350271c4d7573d11b8cfffb41c49b6d4 /interface-definitions
parent63eb47d62eff7a294e06b438a26f2c2997c53f5b (diff)
downloadvyos-1x-5a8310147b858ab85ed5a00fa6cb1f2e856f6a0c.tar.gz
vyos-1x-5a8310147b858ab85ed5a00fa6cb1f2e856f6a0c.zip
T6246: adds basic haproxy http-check configuration
(cherry picked from commit 785616393557c4e3f616287de81b61a68ba177ac)
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/load-balancing_reverse-proxy.xml.in33
1 files changed, 33 insertions, 0 deletions
diff --git a/interface-definitions/load-balancing_reverse-proxy.xml.in b/interface-definitions/load-balancing_reverse-proxy.xml.in
index 49d1d858e..645fe30c7 100644
--- a/interface-definitions/load-balancing_reverse-proxy.xml.in
+++ b/interface-definitions/load-balancing_reverse-proxy.xml.in
@@ -102,6 +102,39 @@
</leafNode>
</children>
</node>
+ <node name="http-check">
+ <properties>
+ <help>HTTP check configuration</help>
+ </properties>
+ <children>
+ <leafNode name="method">
+ <properties>
+ <help>HTTP method used for health check</help>
+ <valueHelp>
+ <format>options|get|post|put</format>
+ <description>HTTP method used for health checking</description>
+ </valueHelp>
+ <constraint>
+ <regex>options|get|post|put</regex>
+ </constraint>
+ </properties>
+ </leafNode>
+ <leafNode name="uri">
+ <properties>
+ <help>URI used for HTTP health check (Example: '/' or '/health')</help>
+ </properties>
+ </leafNode>
+ <leafNode name="expect">
+ <properties>
+ <help>Expected response for the health check to pass</help>
+ <valueHelp>
+ <format>txt</format>
+ <description>expected response (Example: 'status 200-299' or 'string success')</description>
+ </valueHelp>
+ </properties>
+ </leafNode>
+ </children>
+ </node>
#include <include/haproxy/rule-backend.xml.i>
<tagNode name="server">
<properties>