summaryrefslogtreecommitdiff
path: root/op-mode-definitions/pptp-server.xml
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-04-16 20:18:42 +0000
committerDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-04-16 20:18:42 +0000
commitaa7d9dc789a36aec06bdb57391608c79f22b104d (patch)
tree1cb088c43c88d6a909ab455484349cef81bf799c /op-mode-definitions/pptp-server.xml
parent5c2decfd8085895142022932845ceb8e1ddcb4ca (diff)
downloadvyos-1x-aa7d9dc789a36aec06bdb57391608c79f22b104d.tar.gz
vyos-1x-aa7d9dc789a36aec06bdb57391608c79f22b104d.zip
pptp: T2256: Use ppp-server-ctrl.py for op-commands
Diffstat (limited to 'op-mode-definitions/pptp-server.xml')
-rw-r--r--op-mode-definitions/pptp-server.xml10
1 files changed, 8 insertions, 2 deletions
diff --git a/op-mode-definitions/pptp-server.xml b/op-mode-definitions/pptp-server.xml
index 388063885..59be68611 100644
--- a/op-mode-definitions/pptp-server.xml
+++ b/op-mode-definitions/pptp-server.xml
@@ -4,14 +4,20 @@
<children>
<node name="pptp-server">
<properties>
- <help>show pptp-server status</help>
+ <help>Show PPTP server information</help>
</properties>
<children>
<leafNode name="sessions">
<properties>
<help>Show active PPTP server sessions</help>
</properties>
- <command>/usr/bin/accel-cmd -p 2003 'show sessions'</command>
+ <command>${vyos_op_scripts_dir}/ppp-server-ctrl.py --proto="pptp" --action="show sessions"</command>
+ </leafNode>
+ <leafNode name="statistics">
+ <properties>
+ <help>Show PPTP server statistics</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/ppp-server-ctrl.py --proto="pptp" --action="show stat"</command>
</leafNode>
</children>
</node>