diff options
author | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2020-01-08 21:34:42 +0000 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2021-01-24 18:17:23 +0100 |
commit | b3be006223dc204ae7fd2b041b8dc18b26dd3225 (patch) | |
tree | b6ce6919704fe112617f377745acf80ba03bb860 /op-mode-definitions/pppoe-server.xml | |
parent | af319217365094259caaea644105465612cceb38 (diff) | |
download | vyos-1x-b3be006223dc204ae7fd2b041b8dc18b26dd3225.tar.gz vyos-1x-b3be006223dc204ae7fd2b041b8dc18b26dd3225.zip |
pppoe-server: T1957: Implementation CLI commands for maintenance mode
Diffstat (limited to 'op-mode-definitions/pppoe-server.xml')
-rw-r--r-- | op-mode-definitions/pppoe-server.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/op-mode-definitions/pppoe-server.xml b/op-mode-definitions/pppoe-server.xml index 85cbd4712..c4cf35096 100644 --- a/op-mode-definitions/pppoe-server.xml +++ b/op-mode-definitions/pppoe-server.xml @@ -61,4 +61,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> |