]> git.proxmox.com Git - pve-common.git/commitdiff
network: fix default of new bridge learning flag
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Mar 2022 09:13:16 +0000 (10:13 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 18 Mar 2022 09:13:22 +0000 (10:13 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Network.pm

index 0bda5b40eaf3019bf73fbca37cdf520e2aaa3243..c83b1bb858b812dd01488a89d3d20b327c7a30dd 100644 (file)
@@ -435,7 +435,7 @@ sub tap_plug {
 
     $opts = {} if !defined($opts);
 
-    my $no_learning = !$opts->{learning};
+    my $no_learning = defined($opts->{learning}) && !$opts->{learning}; # default to learning on
 
     # cleanup old port config from any openvswitch bridge
     eval {