From 601da2d41437220063de274e9adbac19729275d6 Mon Sep 17 00:00:00 2001 From: DmitriyEshenko Date: Thu, 16 Apr 2020 20:21:42 +0000 Subject: pppoe: T2256: Use ppp-server-ctrl.py for op-commands --- op-mode-definitions/pppoe-server.xml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'op-mode-definitions/pppoe-server.xml') diff --git a/op-mode-definitions/pppoe-server.xml b/op-mode-definitions/pppoe-server.xml index 0293c9502..5ac9d9497 100644 --- a/op-mode-definitions/pppoe-server.xml +++ b/op-mode-definitions/pppoe-server.xml @@ -4,26 +4,26 @@ - show pppoe-server status + Show pppoe-server status Show active PPPoE server sessions - /usr/bin/accel-cmd 'show sessions ifname,username,ip,ip6,ip6-dp,calling-sid,rate-limit,state,uptime,rx-bytes,tx-bytes' + ${vyos_op_scripts_dir}/ppp-server-ctrl.py --proto="pppoe" --action="show sessions" Show PPPoE server statistics - /usr/bin/accel-cmd 'show stat' + ${vyos_op_scripts_dir}/ppp-server-ctrl.py --proto="pppoe" --action="show stat" Show interfaces where pppoe-server listens on - /usr/bin/accel-cmd 'pppoe interface show' + ${vyos_op_scripts_dir}/ppp-server-ctrl.py --proto="pppoe" --action="pppoe interface show" @@ -35,7 +35,7 @@ Restarts pppoe-server - if [ -e /var/run/accel_pppoe.pid ]; then /usr/bin/accel-cmd restart -p 2001; else echo "pppoe-server not running"; fi + ${vyos_op_scripts_dir}/ppp-server-ctrl.py --proto="pppoe" --action="restart" @@ -53,19 +53,19 @@ Terminate all pppoe-server users - /usr/bin/accel-cmd terminate all + ${vyos_op_scripts_dir}/ppp-server-ctrl.py --proto="pppoe" --action="terminate all" Terminate a ppp interface - /usr/bin/accel-cmd terminate if "$4" + ${vyos_op_scripts_dir}/ppp-server-ctrl.py --proto="pppoe" --action="terminate if $4" Terminate specified users - /usr/bin/accel-cmd terminate match username "$4" + ${vyos_op_scripts_dir}/ppp-server-ctrl.py --proto="pppoe" --action="terminate username $4" @@ -87,13 +87,13 @@ Deny new connections and stop to serve pppoe after disconnect last session - /usr/bin/accel-cmd shutdown soft + ${vyos_op_scripts_dir}/ppp-server-ctrl.py --proto="pppoe" --action="shutdown soft" Cancel maintenance mode - /usr/bin/accel-cmd shutdown cancel + ${vyos_op_scripts_dir}/ppp-server-ctrl.py --proto="pppoe" --action="shutdown cancel" -- cgit v1.2.3