summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-01-03 11:09:28 +0000
committerDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-01-03 11:09:28 +0000
commit419bcd5311bce2340a7f920cb966869c8c23bb63 (patch)
treede45d59dd25ec622d7339428997808c6daa92d8d /op-mode-definitions
parent7bb193ce644ea73e4acaa345c84326cb5e0ef78e (diff)
downloadvyos-1x-419bcd5311bce2340a7f920cb966869c8c23bb63.tar.gz
vyos-1x-419bcd5311bce2340a7f920cb966869c8c23bb63.zip
pppoe-server: T1936: Add reset/control sessions features
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 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>