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 8A8961FF0E6 for ; Fri, 24 Jul 2026 11:01:37 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 3379021490; Fri, 24 Jul 2026 11:01:37 +0200 (CEST) From: Stefan Hanreich To: pve-devel@lists.proxmox.com Subject: [PATCH proxmox-ve-rs 1/1] ve-config: add missing descriptions to section config enums Date: Fri, 24 Jul 2026 11:01:24 +0200 Message-ID: <20260724090126.69270-1-s.hanreich@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: 1784883662475 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.239 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_LOW -0.7 Sender listed at https://www.dnswl.org/, low 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: UTGFHWJ6LVDIGB7FAEKJTM7AU5C5BUC7 X-Message-ID-Hash: UTGFHWJ6LVDIGB7FAEKJTM7AU5C5BUC7 X-MailFrom: s.hanreich@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: Signed-off-by: Stefan Hanreich --- proxmox-ve-config/src/sdn/fabric/section_config/fabric.rs | 4 ++++ proxmox-ve-config/src/sdn/fabric/section_config/mod.rs | 8 ++++++++ proxmox-ve-config/src/sdn/fabric/section_config/node.rs | 4 ++++ proxmox-ve-config/src/sdn/route_map.rs | 1 + 4 files changed, 17 insertions(+) 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 9d380c5..f465114 100644 --- a/proxmox-ve-config/src/sdn/fabric/section_config/fabric.rs +++ b/proxmox-ve-config/src/sdn/fabric/section_config/fabric.rs @@ -172,10 +172,14 @@ impl UpdaterType for FabricSection { #[derive(Debug, Clone, Serialize, Deserialize, Hash)] #[serde(rename_all = "snake_case", tag = "protocol")] pub enum Fabric { + /// Section type for OpenFabric fabrics. See [`FabricSection`] and [`OpenfabricProperties`]. Openfabric(FabricSection), + /// Section type for OSPF fabrics. See [`FabricSection`] and [`OspfProperties`]. Ospf(FabricSection), + /// Section type for WireGuard fabrics. See [`FabricSection`] and [`WireGuardProperties`]. #[serde(rename = "wireguard")] WireGuard(FabricSection), + /// Section type for BGP fabrics. See [`FabricSection`] and [`BgpProperties`]. Bgp(FabricSection), } diff --git a/proxmox-ve-config/src/sdn/fabric/section_config/mod.rs b/proxmox-ve-config/src/sdn/fabric/section_config/mod.rs index 35057c7..7f81823 100644 --- a/proxmox-ve-config/src/sdn/fabric/section_config/mod.rs +++ b/proxmox-ve-config/src/sdn/fabric/section_config/mod.rs @@ -67,15 +67,23 @@ pub const SECTION_ID_FORMAT: ApiStringFormat = ApiStringFormat::Pattern(&SECTION #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(rename_all = "snake_case", tag = "type")] pub enum Section { + /// Section type for OpenFabric fabrics. See [`FabricSection`] and [`OpenfabricProperties`]. OpenfabricFabric(FabricSection), + /// Section type for OSPF fabrics. See [`FabricSection`] and [`OspfProperties`]. OspfFabric(FabricSection), + /// Section type for WireGuard fabrics. See [`FabricSection`] and [`WireGuardProperties`]. #[serde(rename = "wireguard_fabric")] WireGuardFabric(FabricSection), + /// Section type for BGP fabrics. See [`FabricSection`] and [`BgpProperties`]. BgpFabric(FabricSection), + /// Section type for OpenFabric nodes. See [`NodeSection`] and [`OpenfabricNodeProperties`]. OpenfabricNode(NodeSection), + /// Section type for OSPF nodes. See [`NodeSection`] and [`OspfNodeProperties`]. OspfNode(NodeSection), + /// Section type for WireGuard nodes. See [`NodeSection`] and [`WireGuardNode`]. #[serde(rename = "wireguard_node")] WireGuardNode(NodeSection), + /// Section type for BGP nodes. See [`NodeSection`] and [`BgpNode`]. BgpNode(NodeSection), } diff --git a/proxmox-ve-config/src/sdn/fabric/section_config/node.rs b/proxmox-ve-config/src/sdn/fabric/section_config/node.rs index d22a547..1c529de 100644 --- a/proxmox-ve-config/src/sdn/fabric/section_config/node.rs +++ b/proxmox-ve-config/src/sdn/fabric/section_config/node.rs @@ -188,10 +188,14 @@ impl ApiType for NodeSection { #[derive(Debug, Clone, Serialize, Deserialize, Hash)] #[serde(rename_all = "snake_case", tag = "protocol")] pub enum Node { + /// Section type for OpenFabric nodes. See [`NodeSection`] and [`OpenfabricNodeProperties`]. Openfabric(NodeSection), + /// Section type for OSPF nodes. See [`NodeSection`] and [`OspfNodeProperties`]. Ospf(NodeSection), + /// Section type for WireGuard nodes. See [`NodeSection`] and [`WireGuardNode`]. #[serde(rename = "wireguard")] WireGuard(NodeSection), + /// Section type for BGP nodes. See [`NodeSection`] and [`BgpNode`]. Bgp(NodeSection), } diff --git a/proxmox-ve-config/src/sdn/route_map.rs b/proxmox-ve-config/src/sdn/route_map.rs index 73eb7bb..3a7a5a4 100644 --- a/proxmox-ve-config/src/sdn/route_map.rs +++ b/proxmox-ve-config/src/sdn/route_map.rs @@ -150,6 +150,7 @@ proxmox_serde::forward_deserialize_to_from_str!(RouteMapEntryId); #[serde(rename_all = "kebab-case", tag = "type")] /// The Route Map section config type. pub enum RouteMap { + /// Section type for entries in a route map. See [`RouteMapEntry`]. RouteMapEntry(RouteMapEntry), } -- 2.47.3