summaryrefslogtreecommitdiff
path: root/op-mode-definitions/load-balacing_haproxy.in
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-10-10 16:13:33 +0100
committerGitHub <noreply@github.com>2024-10-10 16:13:33 +0100
commit9615610ec9daf28d271afbdfb471426a7748db2b (patch)
treef64837212af055db0af54e2c87c8ff0426645637 /op-mode-definitions/load-balacing_haproxy.in
parent3bc900722892dba525b7cd6bada4e6327b01fffe (diff)
parent7765e037b9fc9913b58a39bfa39209ebfd3b3f71 (diff)
downloadvyos-1x-9615610ec9daf28d271afbdfb471426a7748db2b.tar.gz
vyos-1x-9615610ec9daf28d271afbdfb471426a7748db2b.zip
Merge pull request #4147 from sarthurdev/haproxy
haproxy: T6745: Rename reverse-proxy to haproxy
Diffstat (limited to 'op-mode-definitions/load-balacing_haproxy.in')
-rw-r--r--op-mode-definitions/load-balacing_haproxy.in23
1 files changed, 23 insertions, 0 deletions
diff --git a/op-mode-definitions/load-balacing_haproxy.in b/op-mode-definitions/load-balacing_haproxy.in
new file mode 100644
index 000000000..c3d6c799b
--- /dev/null
+++ b/op-mode-definitions/load-balacing_haproxy.in
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="restart">
+ <children>
+ <node name="haproxy">
+ <properties>
+ <help>Restart haproxy service</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/restart.py restart_service --name haproxy</command>
+ </node>
+ </children>
+ </node>
+ <node name="show">
+ <children>
+ <node name="haproxy">
+ <properties>
+ <help>Show load-balancing haproxy</help>
+ </properties>
+ <command>sudo ${vyos_op_scripts_dir}/load-balacing_haproxy.py show</command>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>