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

Setup of VLAN interface #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

koalo
Copy link
Collaborator

@koalo koalo commented May 12, 2023

Currently, the VLAN interface is set up via the ip CLI and fails if it already exists.
Switch to directly interfacing via netlink and if the interface exists, ensure the configuration is correct, but do not fail.

koalo added 2 commits May 10, 2023 12:49
To avoid using the ip command as subprocess, use the pyroute2
package to directly send the netlink commands.
This does not change the behavior, but is a direct mapping
of the ip commands.

Signed-off-by: Florian Kauer <[email protected]>
If the VLAN interface already exists, the setup should not fail.
In that case, check if the existing configuration is compatible
and set the changes (in particular the egress-qos-map).

Signed-off-by: Florian Kauer <[email protected]>
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