diff options
author | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2020-01-08 21:34:42 +0000 |
---|---|---|
committer | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2020-01-08 21:38:09 +0000 |
commit | dac7fd10286b48517c0cf13a5bc2812d59b69967 (patch) | |
tree | 5bce1ad234e92530d0d0f71c41e34bbaa98a2438 | |
parent | 3863e5dc24a622090f52c13f8aa04e5c9f00341a (diff) | |
download | vyos-1x-dac7fd10286b48517c0cf13a5bc2812d59b69967.tar.gz vyos-1x-dac7fd10286b48517c0cf13a5bc2812d59b69967.zip |
pppoe-server: T1957: Implementation CLI commands for maintenance mode
-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 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> |