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:
parent
bf5bc3637f
commit
0a3c65c003
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user