From 419bcd5311bce2340a7f920cb966869c8c23bb63 Mon Sep 17 00:00:00 2001 From: DmitriyEshenko <dmitriy.eshenko@vyos.io> Date: Fri, 3 Jan 2020 11:09:28 +0000 Subject: pppoe-server: T1936: Add reset/control sessions features --- op-mode-definitions/pppoe-server.xml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/op-mode-definitions/pppoe-server.xml b/op-mode-definitions/pppoe-server.xml index 1f6f7f844..13a4570e8 100644 --- a/op-mode-definitions/pppoe-server.xml +++ b/op-mode-definitions/pppoe-server.xml @@ -39,4 +39,36 @@ </leafNode> </children> </node> + <node name="reset"> + <properties> + <help>Reset a service</help> + </properties> + <children> + <node name="pppoe-server"> + <properties> + <help>Reset PPPoE server sessions</help> + </properties> + <children> + <leafNode name="all"> + <properties> + <help>Terminate all pppoe-server users</help> + </properties> + <command>/usr/bin/accel-cmd terminate all</command> + </leafNode> + <tagNode name="interface"> + <properties> + <help>Terminate a ppp interface</help> + </properties> + <command>/usr/bin/accel-cmd terminate if "$4"</command> + </tagNode> + <tagNode name="username"> + <properties> + <help>Terminate specified users</help> + </properties> + <command>/usr/bin/accel-cmd terminate match username "$4"</command> + </tagNode> + </children> + </node> + </children> + </node> </interfaceDefinition> -- cgit v1.2.3