summaryrefslogtreecommitdiff
path: root/op-mode-definitions/openconnect.xml.in
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2021-05-18 20:08:47 +0000
committerChristian Poessinger <christian@poessinger.com>2021-05-19 18:32:49 +0200
commit9197a409876f9943032ac19834b5f04bdac6e00a (patch)
tree3d492dc8990d34bed2a8f0058a43b3758ac5cf5d /op-mode-definitions/openconnect.xml.in
parent61051911bf1e3da4f5939dc25177a63489e4a6be (diff)
downloadvyos-1x-9197a409876f9943032ac19834b5f04bdac6e00a.tar.gz
vyos-1x-9197a409876f9943032ac19834b5f04bdac6e00a.zip
openconnect-server: T3559: Add restart op-command
(cherry picked from commit 5b5e74fb667fa5a5abec779b6c411b3864f3b5fb)
Diffstat (limited to 'op-mode-definitions/openconnect.xml.in')
-rw-r--r--op-mode-definitions/openconnect.xml.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/op-mode-definitions/openconnect.xml.in b/op-mode-definitions/openconnect.xml.in
index 9b82b114e..005b0e5e8 100644
--- a/op-mode-definitions/openconnect.xml.in
+++ b/op-mode-definitions/openconnect.xml.in
@@ -17,4 +17,14 @@
</node>
</children>
</node>
+ <node name="restart">
+ <children>
+ <leafNode name="openconnect-server">
+ <properties>
+ <help>Restart openconnect server process</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/openconnect-control.py --action="restart"</command>
+ </leafNode>
+ </children>
+ </node>
</interfaceDefinition>