summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-04-16 19:54:41 +0000
committerDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-04-16 19:54:41 +0000
commit5c2decfd8085895142022932845ceb8e1ddcb4ca (patch)
treee433831c12c0503e767a34bd5792558f261c4b9c /op-mode-definitions
parentb4544f196c2beededdd76f581690b1490c755dac (diff)
downloadvyos-1x-5c2decfd8085895142022932845ceb8e1ddcb4ca.tar.gz
vyos-1x-5c2decfd8085895142022932845ceb8e1ddcb4ca.zip
l2tp: T2256: Implement control script for operational commands
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/l2tp-server.xml10
1 files changed, 8 insertions, 2 deletions
diff --git a/op-mode-definitions/l2tp-server.xml b/op-mode-definitions/l2tp-server.xml
index fb1b85ce4..3e96b9365 100644
--- a/op-mode-definitions/l2tp-server.xml
+++ b/op-mode-definitions/l2tp-server.xml
@@ -4,14 +4,20 @@
<children>
<node name="l2tp-server">
<properties>
- <help>show l2tp-server status</help>
+ <help>Show L2TP server information</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>
+ <command>${vyos_op_scripts_dir}/ppp-server-ctrl.py --proto="l2tp" --action="show sessions"</command>
+ </leafNode>
+ <leafNode name="statistics">
+ <properties>
+ <help>Show L2TP server statistics</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/ppp-server-ctrl.py --proto="l2tp" --action="show stat"</command>
</leafNode>
</children>
</node>