summaryrefslogtreecommitdiff
path: root/op-mode-definitions/openvpn.xml
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-08-17 02:07:07 +0200
committerChristian Poessinger <christian@poessinger.com>2019-08-17 02:07:07 +0200
commit1fea0d1cd6232033bde839642446fad162f6f8c8 (patch)
treeceb3f9cecb00709959bba96d9241d2bfe73bf1cf /op-mode-definitions/openvpn.xml
parent1fd513bb0ada9b892a790c2fd26537a19976a589 (diff)
downloadvyos-1x-1fea0d1cd6232033bde839642446fad162f6f8c8.tar.gz
vyos-1x-1fea0d1cd6232033bde839642446fad162f6f8c8.zip
openvpn: T1548: add op-mode command for resetting client
vyos@vyos:~$ run reset openvpn client client1
Diffstat (limited to 'op-mode-definitions/openvpn.xml')
-rw-r--r--op-mode-definitions/openvpn.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/op-mode-definitions/openvpn.xml b/op-mode-definitions/openvpn.xml
index 44f8e01e9..9c9c3b3ad 100644
--- a/op-mode-definitions/openvpn.xml
+++ b/op-mode-definitions/openvpn.xml
@@ -45,4 +45,21 @@
</node>
</children>
</node>
+ <node name="reset">
+ <children>
+ <node name="openvpn">
+ <children>
+ <tagNode name="client">
+ <properties>
+ <help>Reset specified OpenVPN client</help>
+ <completionHelp>
+ <script>sudo ${vyos_completion_dir}/list_openvpn_clients.py --all</script>
+ </completionHelp>
+ </properties>
+ <command>echo kill $4 | socat - UNIX-CONNECT:/tmp/openvpn-mgmt-intf > /dev/null</command>
+ </tagNode>
+ </children>
+ </node>
+ </children>
+ </node>
</interfaceDefinition>