public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Alexandre Derumier <aderumier@odiso.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH pve-common 2/2] Inotify: add bridge-disable-mac-learning option to bridges.
Date: Fri, 24 Sep 2021 10:48:55 +0200	[thread overview]
Message-ID: <20210924084855.3074162-3-aderumier@odiso.com> (raw)
In-Reply-To: <20210924084855.3074162-1-aderumier@odiso.com>

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 | 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




  parent reply	other threads:[~2021-09-24  8:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-24  8:48 [pve-devel] [PATCH pve-common 0/2] add disable bridge learning feature Alexandre Derumier
2021-09-24  8:48 ` [pve-devel] [PATCH pve-common 1/2] network: add support for disabling bridge learning on tap|veth|fwln ports Alexandre Derumier
2021-09-24  8:48 ` Alexandre Derumier [this message]
2021-11-11 10:40 ` [pve-devel] [PATCH pve-common 0/2] add disable bridge learning feature Thomas Lamprecht
2021-11-11 10:46   ` Josef Johansson
2021-11-11 18:38   ` DERUMIER, Alexandre
2022-03-16 16:33 ` [pve-devel] applied-series: " Thomas Lamprecht
2022-03-16 16:43   ` DERUMIER, Alexandre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210924084855.3074162-3-aderumier@odiso.com \
    --to=aderumier@odiso.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal