summaryrefslogtreecommitdiff
path: root/op-mode-definitions/pppoe-server.xml
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-01-03 16:30:30 +0100
committerGitHub <noreply@github.com>2020-01-03 16:30:30 +0100
commit54ddd044f503afcb1704dee83b791d1e4dc8583d (patch)
tree50f6f74bc638d5208f77d1a28ea8cbd18dfdfd05 /op-mode-definitions/pppoe-server.xml
parent6945b2e3561cd76d193d41dd6ab5249661230460 (diff)
parent419bcd5311bce2340a7f920cb966869c8c23bb63 (diff)
downloadvyos-1x-54ddd044f503afcb1704dee83b791d1e4dc8583d.tar.gz
vyos-1x-54ddd044f503afcb1704dee83b791d1e4dc8583d.zip
Merge pull request #197 from DmitriyEshenko/pppoe
pppoe-server: T1936: Add reset/control sessions features
Diffstat (limited to 'op-mode-definitions/pppoe-server.xml')
-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>