From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id BBB021FF0BC for ; Mon, 16 Nov 2026 17:14:06 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 28FA1217F0; Mon, 16 Nov 2026 17:12:49 +0100 (CET) From: Gabriel Goller To: pve-devel@lists.proxmox.com Subject: [PATCH pve-network v3 20/32] api: sdn: disallow BGP fabrics in EVPN zone VRFs Date: Mon, 16 Nov 2026 17:11:40 +0100 Message-ID: <20261116161154.343743-21-g.goller@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261116161154.343743-1-g.goller@proxmox.com> References: <20261116161154.343743-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: 1794845521148 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.225 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: XRUPFWZUDJFT3H6MMS7TQHNIRDW6MBTM X-Message-ID-Hash: XRUPFWZUDJFT3H6MMS7TQHNIRDW6MBTM 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 controllers already configure a BGP instance in the zone VRF. FRR only allows one BGP instance per VRF, so a BGP fabric in the same VRF would conflict with the controller's configuration. Reject this combination when creating or updating a fabric. OSPF fabrics can still use EVPN zone VRFs. 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 48c7198ad0f5..e245a0dc3736 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->{'dedicated-vrf'}; -- 2.47.3