summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2020-01-09 15:36:03 +0700
committerGitHub <noreply@github.com>2020-01-09 15:36:03 +0700
commit7a7eb881e51c43b51071b2755523445053554636 (patch)
tree5bce1ad234e92530d0d0f71c41e34bbaa98a2438 /op-mode-definitions
parent3863e5dc24a622090f52c13f8aa04e5c9f00341a (diff)
parentdac7fd10286b48517c0cf13a5bc2812d59b69967 (diff)
downloadvyos-1x-7a7eb881e51c43b51071b2755523445053554636.tar.gz
vyos-1x-7a7eb881e51c43b51071b2755523445053554636.zip
Merge pull request #200 from DmitriyEshenko/pppoe-maintenance
pppoe-server: T1957: Implementation CLI commands for maintenance mode
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/pppoe-server.xml30
1 files changed, 30 insertions, 0 deletions
diff --git a/op-mode-definitions/pppoe-server.xml b/op-mode-definitions/pppoe-server.xml
index 13a4570e8..0293c9502 100644
--- a/op-mode-definitions/pppoe-server.xml
+++ b/op-mode-definitions/pppoe-server.xml
@@ -71,4 +71,34 @@
</node>
</children>
</node>
+ <node name="set">
+ <children>
+ <node name="pppoe-server">
+ <properties>
+ <help>Set PPPoE server maintenance mode</help>
+ </properties>
+ <children>
+ <node name="maintenance-mode">
+ <properties>
+ <help>Set PPPoE server maintenance mode</help>
+ </properties>
+ <children>
+ <leafNode name="enable">
+ <properties>
+ <help>Deny new connections and stop to serve pppoe after disconnect last session</help>
+ </properties>
+ <command>/usr/bin/accel-cmd shutdown soft</command>
+ </leafNode>
+ <leafNode name="cancel">
+ <properties>
+ <help>Cancel maintenance mode</help>
+ </properties>
+ <command>/usr/bin/accel-cmd shutdown cancel</command>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
</interfaceDefinition>