From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 043A81FF13B for ; Wed, 20 May 2026 17:08:20 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id E61AFD468; Wed, 20 May 2026 17:08:17 +0200 (CEST) From: Gabriel Goller To: pve-devel@lists.proxmox.com Subject: [PATCH ve-rs] sdn: fabrics: fix FabricDeletableProperties serialization Date: Wed, 20 May 2026 17:08:02 +0200 Message-ID: <20260520150805.392271-1-g.goller@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1779289673799 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.029 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment 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: ZQSUKAWM7PRW6SRX47NLVHFO7UZ3RQX2 X-Message-ID-Hash: ZQSUKAWM7PRW6SRX47NLVHFO7UZ3RQX2 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: Keep the top-level FabricDeletableProperties enum externally tagged so common delete fields like ip_prefix and ip6_prefix serialize/deserialize as their snake_case names. This matters now, because ip_prefix and ip6_prefix are now deletable. Signed-off-by: Gabriel Goller --- proxmox-ve-config/src/sdn/fabric/section_config/fabric.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-ve-config/src/sdn/fabric/section_config/fabric.rs b/proxmox-ve-config/src/sdn/fabric/section_config/fabric.rs index efa186a8f0df..68c5923293b6 100644 --- a/proxmox-ve-config/src/sdn/fabric/section_config/fabric.rs +++ b/proxmox-ve-config/src/sdn/fabric/section_config/fabric.rs @@ -307,7 +307,7 @@ impl Updater for FabricUpdater { /// Deletable properties for a [`FabricSection`] #[derive(Debug, Clone, Serialize, Deserialize)] -#[serde(rename_all = "snake_case", untagged)] +#[serde(rename_all = "snake_case")] pub enum FabricDeletableProperties { IpPrefix, Ip6Prefix, -- 2.47.3