summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-07-25 09:48:08 -0700
committerhagbard <vyosdev@derith.de>2019-07-25 09:48:08 -0700
commitab5ca2796c1aad0043cc0db80299e4e2d42c1b22 (patch)
treebd0bcd4232e3099c38a142c0953f3c5a89b20d4d /op-mode-definitions
parent36f8a1e4e5966c43c5330ff223fa2ef07d346b6e (diff)
downloadvyos-1x-ab5ca2796c1aad0043cc0db80299e4e2d42c1b22.tar.gz
vyos-1x-ab5ca2796c1aad0043cc0db80299e4e2d42c1b22.zip
[accel-l2tp] - T834: l2tp implementation
- node.def deletion for show remote-access - IPSec interface checking for L2TP - IPSec x509 for l2tp - verification of outside-address to warning since it was optional in the previous config
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/l2tp-server.xml20
-rw-r--r--op-mode-definitions/show-vpn.xml20
2 files changed, 40 insertions, 0 deletions
diff --git a/op-mode-definitions/l2tp-server.xml b/op-mode-definitions/l2tp-server.xml
new file mode 100644
index 000000000..fb1b85ce4
--- /dev/null
+++ b/op-mode-definitions/l2tp-server.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <node name="l2tp-server">
+ <properties>
+ <help>show l2tp-server status</help>
+ </properties>
+ <children>
+ <leafNode name="sessions">
+ <properties>
+ <help>Show active L2TP server sessions</help>
+ </properties>
+ <command>/usr/bin/accel-cmd -p 2004 'show sessions'</command>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>
diff --git a/op-mode-definitions/show-vpn.xml b/op-mode-definitions/show-vpn.xml
new file mode 100644
index 000000000..0e7fc38e9
--- /dev/null
+++ b/op-mode-definitions/show-vpn.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <node name="vpn">
+ <properties>
+ <help>Show active remote access Virtual Private Network (VPN) sessions</help>
+ </properties>
+ <children>
+ <leafNode name="remote-access">
+ <properties>
+ <help>Show active VPN server sessions</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show_vpn_ra.py</command>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>