diff options
| author | Stefan Hanreich <s.hanreich@proxmox.com> | 2025-12-10 19:42:34 +0100 |
|---|---|---|
| committer | Thomas Lamprecht <t.lamprecht@proxmox.com> | 2025-12-10 20:30:18 +0100 |
| commit | d049e4bd02e9c37671c5d6242e1377f2ca3864fd (patch) | |
| tree | 1247c98ad67ac1bdb8bb88af0bd4976c477b5bd4 /PVE/API2/Network/SDN/ssh:/git@puffer.fish | |
| parent | 1b2c880982ccebf4ef92c8c2cc57a0c6089d872c (diff) | |
fix #6806: vlan: qinq: fix bridge port detection
When creating a vlan zone and vnet, pve-network looks at all the
physical bridge ports (slaves) and adds them to the generated vlan
bridge. The zone plugin gets all the bridge interfaces using
`/sys/class/net` and then filters them using a regex. With the
introduction of network interface pinning, the restrictions on network
interface names have gotten more liberal - they're not required to
have specific prefixes anymore. The check for physical interfaces in
the zones plugin needs to be adjusted to reflect those changes,
otherwise the generated SDN configuration does not contain any pinned
physical ports and therefore doesn't work. Use the provided helper
from PVE::IPRoute2 instead, that adheres to the new naming policy and
uses `ip link` to determine the physical ports of the bridge, instead
of relying on a regex.
This improves the previous commit 4f19480b - which only allowed the
nic / if prefixes, which solved the issue when using the default
prefix, but not when using a custom prefix.
Fixes: 4f19480b04315afb5dc23e0130463acaea35db18
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Link: https://lore.proxmox.com/20251210184236.448600-5-s.hanreich@proxmox.com
Diffstat (limited to 'PVE/API2/Network/SDN/ssh:/git@puffer.fish')
0 files changed, 0 insertions, 0 deletions
