| 1 |
--- |
| 2 |
fixes: |
| 3 |
- | |
| 4 |
Fixes an issue in the baremetal-l2vni mechanism driver where OVN |
| 5 |
localnet ports could become orphaned with stale VLAN tags when dynamic |
| 6 |
segments were released and reallocated. This could result in VLAN tag |
| 7 |
mismatches causing traffic to be tagged with incorrect VLAN IDs. |
| 8 |
|
| 9 |
The driver now validates that existing localnet ports have the correct |
| 10 |
VLAN tag matching the current dynamic segment allocation. If a mismatch |
| 11 |
is detected (for example, the localnet port has VLAN 107 but the current |
| 12 |
segment uses VLAN 135), the stale port is automatically deleted and |
| 13 |
recreated with the correct tag. |
| 14 |
|
| 15 |
Additionally, the driver now implements proper cleanup in |
| 16 |
``delete_port_postcommit()`` to remove localnet ports and release |
| 17 |
dynamic segments when the last baremetal port using a segment is |
| 18 |
deleted. This prevents orphaned localnet ports and ensures VLAN IDs |
| 19 |
can be safely reused without configuration conflicts. |