New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
T2102: Add interface to PPPoE-server without restarting sessions #2182
Conversation
Sometimes it is required to temporary add new listen interfaces for PPPoE-server without restarting current sessions/accel-ppp. It is possible from op-mode: /usr/bin/accel-cmd -p 2001 pppoe interface add "xxx" $ force pppoe-server interface eth1 $ $ show pppoe-server interfaces interface: connections: state: ----------------------------------- eth0 1 active eth1 0 active
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is now a configuration miss-match between running daemon and running config. Why not detect is_node_changed()
on the interfaces in config mode and hot-add or hot-remove them on commit instead of restarting the daemon?
We already have several places in the code (get_interface_dict() for dhcp-options
as example) that detect CLI changes and set a flag in the config dictionary indicating a daemon restart is inevitable.
accel-ppp doesn't implement daemon-reload properly, and not all features can be applied without restarting. The only case that it implemented without restarting sessions is via That is what I'm talking about
|
That's what I'm talking about, too. Instead of adding an op-mode command that injects interfaces and making the running config and CLI config diverge, we should automate your commands to issue those commands automatically once an interface is added. All code is there to detect a change on the |
It is a bad idea, as it can’t be used with interface regex which configured for example user per vlan case It is not possible to configure via
It is better don’t use it at all and leave it as raw accel-cmd command which was originally used to get it working. |
<children> | ||
<node name="pppoe-server"> | ||
<properties> | ||
<help>Set PPPoE-server oprions</help> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be spelled: options
Closed as we will solve the use-case by extending the vyos-documentation to inform the user what he can do. |
Change Summary
Sometimes, it is required to temporarily add new listen interfaces for the PPPoE-server without restarting current sessions/accel-ppp daemon. It is possible from op-mode:
Types of changes
Related Task(s)
Component(s) name
pppoe-server
Proposed changes
How to test
VyOS configuration:
Add temporary listen interface eth1:
Checklist: