From: "DERUMIER, Alexandre" <alexandre.derumier@groupe-cyllene.com>
To: "pve-devel@lists.proxmox.com" <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] [PATCH pve-network] Fix #4917: evpn: forbid vlan-aware bridge
Date: Wed, 22 Nov 2023 17:57:05 +0000 [thread overview]
Message-ID: <de99201a5aba4b0937c2776a5d6961932bc6279b.camel@groupe-cyllene.com> (raw)
In-Reply-To: <20231027115328.654782-1-aderumier@odiso.com>
Hi,
Could it be possible to apply this small pve-network patch ?
-------- Message initial --------
De: Alexandre Derumier <aderumier@odiso.com>
Répondre à: Proxmox VE development discussion <pve-
devel@lists.proxmox.com>
À: pve-devel@lists.proxmox.com
Objet: [pve-devel] [PATCH pve-network] Fix #4917: evpn: forbid vlan-
aware bridge
Date: 27/10/2023 13:53:28
Do it on vnet update instead throwing a warning at config generation.
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
---
src/PVE/Network/SDN/Zones/EvpnPlugin.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PVE/Network/SDN/Zones/EvpnPlugin.pm
b/src/PVE/Network/SDN/Zones/EvpnPlugin.pm
index 5e9f8ec..655a9f0 100644
--- a/src/PVE/Network/SDN/Zones/EvpnPlugin.pm
+++ b/src/PVE/Network/SDN/Zones/EvpnPlugin.pm
@@ -117,7 +117,6 @@ sub generate_sdn_config {
die "missing vxlan tag" if !$tag;
die "missing controller" if !$controller;
- warn "vlan-aware vnet can't be enabled with evpn plugin" if $vnet-
>{vlanaware};
my @peers = PVE::Tools::split_list($controller->{'peers'});
@@ -309,6 +308,7 @@ sub vnet_update_hook {
raise_param_exc({ tag => "missing vxlan tag"}) if !defined($tag);
raise_param_exc({ tag => "vxlan tag max value is 16777216"}) if
$tag > 16777216;
+ raise_param_exc({ 'vlan-aware' => "vlan-aware option can't be
enabled with evpn"}) if $vnet->{vlanaware};
# verify that tag is not already defined globally (vxlan-id are
unique)
foreach my $id (keys %{$vnet_cfg->{ids}}) {
next prev parent reply other threads:[~2023-11-22 17:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-27 11:53 Alexandre Derumier
2023-10-31 11:19 ` Wolfgang Bumiller
2023-11-22 17:57 ` DERUMIER, Alexandre [this message]
2023-11-22 18:49 ` [pve-devel] applied: " Thomas Lamprecht
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=de99201a5aba4b0937c2776a5d6961932bc6279b.camel@groupe-cyllene.com \
--to=alexandre.derumier@groupe-cyllene.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal