When we have large infrastructure (like ISP), and we want to make a tech works on ONE of BRAS, we need possibility change server to maintenance mode. We can do this if send pppoe daemon command shutdown soft. PPPoE daemon will continue serv already connected clients, but deny new connections. When last client disconnected - PPPoE daemon goes down.
Description
Description
Details
Details
- Version
- -
- Is it a breaking change?
- Unspecified (possibly destroys the router)
Related Objects
Related Objects
Event Timeline
Comment Actions
https://github.com/vyos/vyos-1x/pull/200
adding CLI commands
vyos@BRAS:~$ set pppoe-server maintenance-mode Possible completions: cancel Cancel maintenance mode enable Deny new connections and stop to serve pppoe after disconnect last session
Comment Actions
I like the idea, but unfortunately I do not understand why there needs to be a cancel node? If maintenance mode is not activated shouldnt this be enough?
Why not sent shutdown cancel if maintenance mode node is delete if it was active before? conf.return_effective_*() to check if it was active. This would simplify CLI - which is always the best.
Just my two cents
Comment Actions
@c-po this is operation commands, as I understand you propose to write py script with return_effective_ , correct?