From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 8E9FC1FF0AA for ; Fri, 21 Aug 2026 16:06:07 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id F3D8E2165C; Fri, 21 Aug 2026 16:04:29 +0200 (CEST) From: Gabriel Goller To: pve-devel@lists.proxmox.com Subject: [PATCH pve-network 13/15] api: sdn: disallow BGP fabrics in EVPN zone VRFs Date: Fri, 21 Aug 2026 16:03:57 +0200 Message-ID: <20260821140404.322081-14-g.goller@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260821140404.322081-1-g.goller@proxmox.com> References: <20260821140404.322081-1-g.goller@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1787321023640 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.689 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: SSIQQHINP24AP3543V5GKEFV2IEPOKA2 X-Message-ID-Hash: SSIQQHINP24AP3543V5GKEFV2IEPOKA2 X-MailFrom: g.goller@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: EVPN zones already configure a BGP router in their dedicated VRF. Reject BGP fabrics using the same VRF to avoid conflicting FRR BGP instances. Signed-off-by: Gabriel Goller --- src/PVE/API2/Network/SDN/Fabrics/Fabric.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PVE/API2/Network/SDN/Fabrics/Fabric.pm b/src/PVE/API2/Network/SDN/Fabrics/Fabric.pm index 2ef55259ede3..e3156b89df24 100644 --- a/src/PVE/API2/Network/SDN/Fabrics/Fabric.pm +++ b/src/PVE/API2/Network/SDN/Fabrics/Fabric.pm @@ -41,6 +41,8 @@ sub validate_fabric_zone { raise_param_exc({ zone => "zone '$zone_id' does not exist" }) if !$zone; raise_param_exc({ zone => "zone '$zone_id' does not provide a dedicated VRF" }) if $zone->{type} ne 'simple' && $zone->{type} ne 'evpn'; + raise_param_exc({ zone => "BGP fabrics cannot use an EVPN zone VRF" }) + if $protocol eq 'bgp' && $zone->{type} eq 'evpn'; raise_param_exc({ zone => "zone '$zone_id' is configured to use the default VRF" }) if $zone->{type} eq 'simple' && ($zone->{'default-vrf'} // 1); -- 2.47.3