device: support reapplying bridge-port VLANs

For now, always reapply the VLANs unconditionally, even if they didn't
change in kernel.

To set again the VLANs on the port we need to clear all the existing
one before. However, this deletes also the VLAN for the default-pvid
on the bridge. Therefore, we need some additional logic to inject the
default-pvid in the list of VLANs.

Co-authored-by: Íñigo Huguet <ihuguet@redhat.com>
This commit is contained in:
Beniamino Galvani
2024-07-25 18:32:24 +02:00
committed by Íñigo Huguet
parent e00c81b153
commit c5d1e35f99
4 changed files with 92 additions and 0 deletions

1
NEWS
View File

@@ -23,6 +23,7 @@ USE AT YOUR OWN RISK. NOT RECOMMENDED FOR PRODUCTION USE!
* ndisc: Support multiple gateways for a single network
* wifi: Support configuring channel-width in AP mode
* keyfile: Stop writing offensive terms into keyfiles
* Support reapplying the VLANs on bridge ports.
=============================================
NetworkManager-1.48