From: Gabriel Goller <g.goller@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH ve-rs] sdn: fabrics: fix FabricDeletableProperties serialization
Date: Wed, 20 May 2026 17:08:02 +0200 [thread overview]
Message-ID: <20260520150805.392271-1-g.goller@proxmox.com> (raw)
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 <g.goller@proxmox.com>
---
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<T>`]
#[derive(Debug, Clone, Serialize, Deserialize)]
-#[serde(rename_all = "snake_case", untagged)]
+#[serde(rename_all = "snake_case")]
pub enum FabricDeletableProperties<T> {
IpPrefix,
Ip6Prefix,
--
2.47.3
reply other threads:[~2026-05-20 15:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260520150805.392271-1-g.goller@proxmox.com \
--to=g.goller@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.