summaryrefslogtreecommitdiff
path: root/op-mode-definitions/openconnect.xml
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-09-09 10:00:21 +0200
committerGitHub <noreply@github.com>2020-09-09 10:00:21 +0200
commit32eb4b342e962f3f2c3f46671a9415f04b0db40b (patch)
treeac30396d42616eefa40a31f7091aa23d84feefb5 /op-mode-definitions/openconnect.xml
parentb6b61bc9ecf1328e67a0c15934f8bf3966a6b66d (diff)
parente41ae4d952e276d8497d38f5761806c14ea542d2 (diff)
downloadvyos-1x-32eb4b342e962f3f2c3f46671a9415f04b0db40b.tar.gz
vyos-1x-32eb4b342e962f3f2c3f46671a9415f04b0db40b.zip
Merge pull request #541 from DmitriyEshenko/1x-cur-openconnect
openconnect: T2036: Move CLI commands under vpn openconnect
Diffstat (limited to 'op-mode-definitions/openconnect.xml')
-rw-r--r--op-mode-definitions/openconnect.xml20
1 files changed, 20 insertions, 0 deletions
diff --git a/op-mode-definitions/openconnect.xml b/op-mode-definitions/openconnect.xml
new file mode 100644
index 000000000..9b82b114e
--- /dev/null
+++ b/op-mode-definitions/openconnect.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <node name="openconnect-server">
+ <properties>
+ <help>show openconnect-server information</help>
+ </properties>
+ <children>
+ <leafNode name="sessions">
+ <properties>
+ <help>Show active openconnect server sessions</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/openconnect-control.py --action="show_sessions"</command>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>