From 603d47d5e2cfc9b72a6de689136231115a3e0d6f Mon Sep 17 00:00:00 2001 From: DmitriyEshenko Date: Tue, 14 Apr 2020 18:42:54 +0000 Subject: ipoe: T2256: Rewrite op-mode commands --- op-mode-definitions/ipoe-server.xml | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/ipoe-server.xml b/op-mode-definitions/ipoe-server.xml index c05e2d2c1..c20d3aa2a 100644 --- a/op-mode-definitions/ipoe-server.xml +++ b/op-mode-definitions/ipoe-server.xml @@ -12,24 +12,33 @@ Clear ipoe-server session - + Clear ipoe-server session by username - + - /usr/bin/accel-cmd -p 2002 terminate username $5 - - + ${vyos_op_scripts_dir}/ipoe-control.py --action="terminate" --selector="username" --target="$5" + + - Clear ipoe-server session by sid + Clear ipoe-server session by Session ID - + - /usr/bin/accel-cmd -p 2002 terminate sid $5 - + ${vyos_op_scripts_dir}/ipoe-control.py --action="terminate" --selector="sid" --target="$5" + + + + Clear ipoe-server session by interface + + + + + ${vyos_op_scripts_dir}/ipoe-control.py --action="terminate" --selector="if" --target="$5" + @@ -47,13 +56,13 @@ Show active IPoE server sessions - /usr/bin/accel-cmd -p 2002 show sessions ifname,username,called-sid,calling-sid,ip,ip6,ip6-dp,rate-limit,state,uptime,sid + ${vyos_op_scripts_dir}/ipoe-control.py --action="show_sessions" Show IPoE server statistics - /usr/bin/accel-cmd -p 2002 show stat + ${vyos_op_scripts_dir}/ipoe-control.py --action="show_stat" @@ -65,7 +74,7 @@ show ipoe-server status - if [ -e /var/run/accel_ipoe.pid ]; then /usr/bin/accel-cmd restart -p 2002; else echo "ipoe-server not running"; fi + ${vyos_op_scripts_dir}/ipoe-control.py --action="restart" -- cgit v1.2.3