[PATCH proxmox-ve-rs v5 17/46] fabrics: ospf: fix deserializing OspfDeletableProperties

Stefan Hanreich
2026-05-05T15:41:02Z

The enum fails to deserialize from a string when untagged is
specified. This wasn't an issue until now, since the variants are
empty - but subsequent patches will introduce properties to the OSPF
configuration that could be deleted.

Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
---
.../src/sdn/fabric/section_config/protocol/ospf.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxmox-ve-config/src/sdn/fabric/section_config/protocol/ospf.rs b/proxmox-ve-config/src/sdn/fabric/section_config/protocol/ospf.rs
index df0be95..fcec5df 100644
--- a/proxmox-ve-config/src/sdn/fabric/section_config/protocol/ospf.rs
+++ b/proxmox-ve-config/src/sdn/fabric/section_config/protocol/ospf.rs
@@ -50,7 +50,7 @@ impl Validatable for FabricSection<OspfProperties> {
}

#[derive(Debug, Clone, Serialize, Deserialize)]
-#[serde(rename_all = "snake_case", untagged)]
+#[serde(rename_all = "snake_case")]
pub enum OspfDeletableProperties {}

#[api(
--
2.47.3