summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-01-03 11:09:28 +0000
committerJohn Estabrook <jestabro@vyos.io>2020-03-20 12:46:03 -0500
commite93c92f9e6b2ee29e671a4c1d2750500cc5f63b7 (patch)
tree3ee840e4ec40a5e05634475f306d905908c34fe3 /op-mode-definitions
parent496bd8223913cd0a91229eb4142d7211b176bc4f (diff)
downloadvyos-1x-e93c92f9e6b2ee29e671a4c1d2750500cc5f63b7.tar.gz
vyos-1x-e93c92f9e6b2ee29e671a4c1d2750500cc5f63b7.zip
pppoe-server: T1936: Add reset/control sessions features
(cherry picked from commit 419bcd5311bce2340a7f920cb966869c8c23bb63)
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/pppoe-server.xml32
1 files changed, 32 insertions, 0 deletions
diff --git a/op-mode-definitions/pppoe-server.xml b/op-mode-definitions/pppoe-server.xml
index d8a518573..85cbd4712 100644
--- a/op-mode-definitions/pppoe-server.xml
+++ b/op-mode-definitions/pppoe-server.xml
@@ -29,4 +29,36 @@
</node>
</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>