Issue
`What were you trying to do that didn't work?
The `nmcli device reapply` did not reset port's VLAN filtering base on linux bridge's default-pvid setting, causing leftover VLANs.
For below example, the `br0` has changed default-pvid from 900 to 901, the reapply on `br0` and `dummy1` should refresh vlan settings on `dummy1`, but
noticed the VLAN `900` still exits as leftover.
Please provide the package NVR for which bug is seen:
NetworkManager-1.47.1-33100.copr.9920a4b576.el9.x86_64
How reproducible:
100%
Steps to reproduce
echo '
---
interfaces:
- name: dummy1
type: dummy
- name: br0
type: linux-bridge
state: up
bridge:
options:
vlan-default-pvid: 900
stp:
enabled: false
port:
- name: dummy1
vlan:
enable-native: true
mode: trunk
tag: 300
trunk-tags:
- id: 101
- id: 102
' | nmstatectl set -
bridge vlan
nmcli c modify br0 bridge.vlan-default-pvid 901
nmcli d reapply br0
nmcli d reapply dummy1
bridge vlan
Expected results
port
vlan-id
br0
901 PVID Egress Untagged
dummy1
101
102
300 PVID Egress Untagged
901 Egress Untagged
Actual results
port
vlan-id
br0
901 PVID Egress Untagged
dummy1
101
102
300 Egress Untagged
900 Egress Untagged
901 PVID Egress Untagged
Business impact:
This bug is found during effort on integrating nmstate into OpenShift day1 configuration. Nmstate can workaround this by doing full reactivation on impacted bridge ports, the bug report is just for reference.
You may close it as won't fix.