Skip to content
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

add persistent configuration for mstpd #4

Draft
wants to merge 2 commits into
base: 0.1.0+bisdn
Choose a base branch
from

Conversation

KanjiMonster
Copy link
Collaborator

To allow network-manager agnostic persistent configuration, add support
for loading configuration from /etc/mstpd/$interface.conf, where the
configuration contents are loaded like batch files for mstpctl.

Since we can only apply configuration to bridges or ports once they are
known, load the configuration files on-demand when taking over bridges
or attaching ports to bridges.

In order to reuse the code for batch processing commands in files, move
the appropriate code in their own unit and export the needed functions
for mstpctl.

Signed-off-by: Jonas Gorski <[email protected]>
To allow network-manager agnostic persistent configuration, add support
for loading configuration from /etc/mstpd/$interface.conf, where the
configuration contents are loaded like batch files for mstpctl.

Since we can only apply configuration to bridges or ports once they are
known, load the configuration files on-demand when taking over bridges
or attaching ports to bridges.

Signed-off-by: Jonas Gorski <[email protected]>
@KanjiMonster KanjiMonster requested a review from jklare June 22, 2023 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant