fdb: only manage FDB entries for Linux bridges for now

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>
This commit is contained in:
Thomas Lamprecht 2022-11-20 16:03:41 +01:00
parent f81c9843c3
commit fe62da4f97

View 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});
}
}