5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2025-01-06 21:17:37 +03:00

network: support adding fdb directly in tap_plug

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-11-20 16:07:36 +01:00
parent bf5bc3637f
commit 0a3c65c003

View File

@ -492,7 +492,10 @@ sub tap_plug {
} else {
&$bridge_add_interface($bridge, $iface, $tag, $trunks);
}
$bridge_disable_interface_learning->($iface) if $no_learning;
if ($no_learning) {
$bridge_disable_interface_learning->($iface);
add_bridge_fdb($iface, $opts->{mac}) if defined($opts->{mac});
}
} else {
&$cleanup_firewall_bridge($iface); # remove stale devices