public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH pve-network 1/1] fix #7672: evpn zone: dont generate frr vrfs on excluded nodes
@ 2026-06-05 14:18 Stefan Hanreich
  2026-06-08  9:56 ` Gabriel Goller
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Hanreich @ 2026-06-05 14:18 UTC (permalink / raw)
  To: pve-devel

If the main EVPN controller of a EVPN zone is restricted to specific
nodes, then applying the SDN configuration still tries to generate the
FRR configuration for the zone and its vnets on the excluded nodes.
This is because the functions generating the FRR configuration for the
VRF of the zone and the vnets does not check the 'nodes' property of
the EVPN controller. Avoid this situation by checking the setting in
the controller and returning early to avoid generating any
configuration.

Fixes: e388f01fd85469e809982e71c84cc06a781899bb
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
---
 src/PVE/Network/SDN/Controllers/EvpnPlugin.pm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm b/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm
index 4220cb67..d744e882 100644
--- a/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm
+++ b/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm
@@ -324,6 +324,11 @@ sub generate_zone_frr_config {
 
     my $local_node = PVE::INotify::nodename();
 
+    if (defined($controller->{nodes})) {
+        my @nodes = PVE::Tools::split_list($controller->{nodes});
+        return if !grep { $_ eq $local_node } @nodes;
+    }
+
     my $vrf = "vrf_$id";
     my $vrfvxlan = $plugin_config->{'vrf-vxlan'};
     my $exitnodes = $plugin_config->{'exitnodes'};
@@ -586,12 +591,18 @@ sub generate_zone_frr_config {
 sub generate_vnet_frr_config {
     my ($class, $plugin_config, $controller, $zone, $zoneid, $vnetid, $config) = @_;
 
+    my $local_node = PVE::INotify::nodename();
+
+    if (defined($controller->{nodes})) {
+        my @nodes = PVE::Tools::split_list($controller->{nodes});
+        return if !grep { $_ eq $local_node } @nodes;
+    }
+
     my $exitnodes = $zone->{'exitnodes'};
     my $exitnodes_local_routing = $zone->{'exitnodes-local-routing'};
 
     return if !$exitnodes_local_routing;
 
-    my $local_node = PVE::INotify::nodename();
     my $is_gateway = $exitnodes->{$local_node};
 
     return if !$is_gateway;
-- 
2.47.3





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

* Re: [PATCH pve-network 1/1] fix #7672: evpn zone: dont generate frr vrfs on excluded nodes
  2026-06-05 14:18 [PATCH pve-network 1/1] fix #7672: evpn zone: dont generate frr vrfs on excluded nodes Stefan Hanreich
@ 2026-06-08  9:56 ` Gabriel Goller
  0 siblings, 0 replies; 2+ messages in thread
From: Gabriel Goller @ 2026-06-08  9:56 UTC (permalink / raw)
  To: Stefan Hanreich; +Cc: pve-devel

Gave it a spin, everything works with this patch -- consider:

Tested-by: Gabriel Goller <g.goller@proxmox.com>
Reviewed-by: Gabriel Goller <g.goller@proxmox.com>




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

end of thread, other threads:[~2026-06-08  9:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-05 14:18 [PATCH pve-network 1/1] fix #7672: evpn zone: dont generate frr vrfs on excluded nodes Stefan Hanreich
2026-06-08  9:56 ` Gabriel Goller

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