public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH pve-network] Fix #4917: evpn: forbid vlan-aware bridge
@ 2023-10-27 11:53 Alexandre Derumier
  2023-10-31 11:19 ` Wolfgang Bumiller
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexandre Derumier @ 2023-10-27 11:53 UTC (permalink / raw)
  To: pve-devel

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}}) {
-- 
2.39.2




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [pve-devel] [PATCH pve-network] Fix #4917: evpn: forbid vlan-aware bridge
  2023-10-27 11:53 [pve-devel] [PATCH pve-network] Fix #4917: evpn: forbid vlan-aware bridge Alexandre Derumier
@ 2023-10-31 11:19 ` Wolfgang Bumiller
  2023-11-22 17:57 ` DERUMIER, Alexandre
  2023-11-22 18:49 ` [pve-devel] applied: " Thomas Lamprecht
  2 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Bumiller @ 2023-10-31 11:19 UTC (permalink / raw)
  To: Alexandre Derumier; +Cc: pve-devel

On Fri, Oct 27, 2023 at 01:53:28PM +0200, Alexandre Derumier wrote:
> 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};

What are the symptoms of this?
If it's just ignored there could be existing setups where this might
still be set, in which case we should keep the warning. From the code it
seems the places where this property is used from the this package's
base packages gets overridden so it would be ignored.
But if it didn't work and those setups wouldn't stick around then it
makes sense to remove it.

>  
>      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}}) {
> -- 
> 2.39.2




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [pve-devel] [PATCH pve-network] Fix #4917: evpn: forbid vlan-aware bridge
  2023-10-27 11:53 [pve-devel] [PATCH pve-network] Fix #4917: evpn: forbid vlan-aware bridge Alexandre Derumier
  2023-10-31 11:19 ` Wolfgang Bumiller
@ 2023-11-22 17:57 ` DERUMIER, Alexandre
  2023-11-22 18:49 ` [pve-devel] applied: " Thomas Lamprecht
  2 siblings, 0 replies; 4+ messages in thread
From: DERUMIER, Alexandre @ 2023-11-22 17:57 UTC (permalink / raw)
  To: pve-devel

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}}) {


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [pve-devel] applied: [PATCH pve-network] Fix #4917: evpn: forbid vlan-aware bridge
  2023-10-27 11:53 [pve-devel] [PATCH pve-network] Fix #4917: evpn: forbid vlan-aware bridge Alexandre Derumier
  2023-10-31 11:19 ` Wolfgang Bumiller
  2023-11-22 17:57 ` DERUMIER, Alexandre
@ 2023-11-22 18:49 ` Thomas Lamprecht
  2 siblings, 0 replies; 4+ messages in thread
From: Thomas Lamprecht @ 2023-11-22 18:49 UTC (permalink / raw)
  To: Proxmox VE development discussion, Alexandre Derumier

Am 27/10/2023 um 13:53 schrieb Alexandre Derumier:
> 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(-)
> 
>

applied, thanks!




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-11-22 18:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-27 11:53 [pve-devel] [PATCH pve-network] Fix #4917: evpn: forbid vlan-aware bridge Alexandre Derumier
2023-10-31 11:19 ` Wolfgang Bumiller
2023-11-22 17:57 ` DERUMIER, Alexandre
2023-11-22 18:49 ` [pve-devel] applied: " Thomas Lamprecht

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