[pve-devel] [PATCH pve-common 2/2] Inotify: add bridge-disable-mac-learning option to bridges.
Alexandre Derumier
aderumier at odiso.com
Fri Sep 24 10:48:55 CEST 2021
This is an internal option, only used by proxmox, and not ifupdown1/2
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
src/PVE/INotify.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm
index 4ff63e8..db942b1 100644
--- a/src/PVE/INotify.pm
+++ b/src/PVE/INotify.pm
@@ -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;
@@ -958,6 +958,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,
@@ -1282,6 +1283,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') {
--
2.30.2
More information about the pve-devel
mailing list