summaryrefslogtreecommitdiff
path: root/op-mode-definitions/load-balacing_haproxy.in
diff options
context:
space:
mode:
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>