Skip to content

Setup of VLAN interface#8

Open
koalo wants to merge 2 commits intoAvnu:masterfrom
koalo:develop/ip-via-netlink
Open

Setup of VLAN interface#8
koalo wants to merge 2 commits intoAvnu:masterfrom
koalo:develop/ip-via-netlink

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 <florian.kauer@linutronix.de>
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 <florian.kauer@linutronix.de>
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