]> git.proxmox.com Git - pve-common.git/commitdiff
Inotify: add bridge-disable-mac-learning option to bridges.
authorAlexandre Derumier <aderumier@odiso.com>
Fri, 24 Sep 2021 08:48:55 +0000 (10:48 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 16 Mar 2022 16:20:12 +0000 (17:20 +0100)
This is an internal option, only used by proxmox, and not ifupdown1/2

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
src/PVE/INotify.pm

index 0d82a522b63f105ad271eaaae7490d40ab6529e4..5f82d7bf42811a07658c1c0324e5e99311713aa1 100644 (file)
@@ -884,7 +884,7 @@ sub __read_etc_network_interfaces {
        'bridge-fd' => 'bridge_fd',
        'bridge-stp' => 'bridge_stp',
        'bridge-ports' => 'bridge_ports',
-       'bridge-vids' => 'bridge_vids'
+       'bridge-vids' => 'bridge_vids',
     };
 
     my $line;
@@ -953,6 +953,7 @@ sub __read_etc_network_interfaces {
                        'bridge-arp-nd-suppress' => 1,
                        'bridge-unicast-flood' => 1,
                        'bridge-multicast-flood' => 1,
+                       'bridge-disable-mac-learning' => 1,
                        'bond_miimon' => 1,
                        'bond_xmit_hash_policy' => 1,
                        'bond-primary' => 1,
@@ -1280,6 +1281,7 @@ sub __interface_to_string {
 
        $raw .= "\tmtu $d->{mtu}\n" if $d->{mtu};
        $done->{mtu} = 1;
+       $done->{'bridge-disable-mac-learning'} = 1;
 
     } elsif ($d->{type} eq 'bond') {