summaryrefslogtreecommitdiff
path: root/op-mode-definitions/load-balacing_haproxy.in
diff options
context:
space:
mode:
authorNataliia S. <81954790+natali-rs1985@users.noreply.github.com>2024-10-21 10:30:38 +0300
committerGitHub <noreply@github.com>2024-10-21 10:30:38 +0300
commit18a9cec3deb6cc2dc49020a89208dc70defe9822 (patch)
treebe0bcfa93d52d559da03bc97eb928fc508bacd7d /op-mode-definitions/load-balacing_haproxy.in
parent5c76607a9faef1fb5dc07459a38d37261ce988c1 (diff)
parentfa272f5297177354714ee7867104f43e4e322df6 (diff)
downloadvyos-1x-18a9cec3deb6cc2dc49020a89208dc70defe9822.tar.gz
vyos-1x-18a9cec3deb6cc2dc49020a89208dc70defe9822.zip
Merge branch 'current' into T6695
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>