]> git.proxmox.com Git - qemu-server.git/commitdiff
fdb: only manage FDB entries for Linux bridges for now
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 20 Nov 2022 15:03:41 +0000 (16:03 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 20 Nov 2022 15:03:45 +0000 (16:03 +0100)
we need to handle OVS setups differently, so for now just ignore it
there (behavior as it was in 7.2)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm

index 395c09c97e897bfaf0b0c774a613063b3177512f..721633d8d956c6920dbc06720ffb0d6a2019a146 100644 (file)
@@ -8451,7 +8451,7 @@ sub add_nets_bridge_fdb {
        my $bridge = $net->{bridge};
        if ($have_sdn) {
            PVE::Network::SDN::Zones::add_bridge_fdb($iface, $mac, $bridge, $net->{firewall});
-       } else {
+       } elsif (-d "/sys/class/net/$bridge/bridge") { # avoid fdb management with OVS for now
            PVE::Network::add_bridge_fdb($iface, $mac, $net->{firewall});
        }
     }
@@ -8470,7 +8470,7 @@ sub del_nets_bridge_fdb {
        my $bridge = $net->{bridge};
        if ($have_sdn) {
            PVE::Network::SDN::Zones::del_bridge_fdb($iface, $mac, $bridge, $net->{firewall});
-       } else {
+       } elsif (-d "/sys/class/net/$bridge/bridge") { # avoid fdb management with OVS for now
            PVE::Network::del_bridge_fdb($iface, $mac, $net->{firewall});
        }
     }