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 6C4AE1FF191 for ; Tue, 9 Sep 2025 12:08:41 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 286AC5A1C; Tue, 9 Sep 2025 12:08:43 +0200 (CEST) From: Stefan Hanreich To: pdm-devel@lists.proxmox.com Date: Tue, 9 Sep 2025 12:08:27 +0200 Message-ID: <20250909100838.234778-1-s.hanreich@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.333 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 KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods POISEN_SPAM_PILL 0.1 Meta: its spam POISEN_SPAM_PILL_1 0.1 random spam to be learned in bayes POISEN_SPAM_PILL_3 0.1 random spam to be learned in bayes RDNS_NONE 0.793 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [mod.rs, renderer.rs, cluster.pm, remote.rs, resources.rs, tree.rs, utils.rs, resource.rs, lib.rs] Subject: [pdm-devel] [PATCH manager/proxmox-datacenter-manager 0/6] Add SDN resources to dashboard + SDN zone overview tree X-BeenThere: pdm-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Datacenter Manager development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pdm-devel-bounces@lists.proxmox.com Sender: "pdm-devel" ## Introduction This patch series adds the SDN cluster resources to the existing resource infrastructure in PDM. It also adds a small panel to the dashboard that gives an aggregated count of the status of SDN zones across all remotes. It also adds the SDN resources to the resource tree. It adds a new menu entry: SDN that acts as the top-level for all SDN-related menu entries. The menu entry shows a tree of all SDN zones across all remotes, as well as their current status. I've decided to model the SDN entities as an enum, since in the future we want to add additional SDN entities, and they all might have different properties. This avoids a type where all additional properties have Option<> as well as polluting the root Resource type with Sdn variants. ## Additional API endpoints: * GET /resources/type/{resource_type} ## Notes for reviewers: * is the structure for the SDN resources okay, or should we introduce a dedicated resource for different SDN entities (i.e. PveSdnZone, PveSdnFabric, .. instead of PveSdn(Zone::(_)))? * is the new API endpoint okay or should we just use the existing search infrastructure for returning SDN resources instead of introducing a dedicated API endpoint? pve-manager: Stefan Hanreich (1): cluster: resources: add sdn property to cluster resources schema PVE/API2/Cluster.pm | 5 +++++ 1 file changed, 5 insertions(+) proxmox-datacenter-manager: Stefan Hanreich (5): pdm-api-types: add sdn cluster resource server: api: add resources_by_type api call ui: add sdn status report to dashboard ui: images: add sdn icon ui: sdn: add zone tree cli/client/src/resources.rs | 14 + lib/pdm-api-types/src/resource.rs | 159 +++++++++- lib/pdm-client/src/lib.rs | 14 +- lib/proxmox-api-types | 2 +- server/src/api/resources.rs | 131 +++++++- server/src/metric_collection/top_entities.rs | 1 + ui/Makefile | 1 + ui/css/pdm.scss | 27 +- ui/images/icon-sdn.svg | 70 +++++ ui/src/dashboard/mod.rs | 17 +- ui/src/dashboard/sdn_zone_panel.rs | 155 ++++++++++ ui/src/lib.rs | 13 +- ui/src/main_menu.rs | 15 +- ui/src/pve/remote.rs | 1 + ui/src/pve/tree.rs | 1 + ui/src/pve/utils.rs | 16 +- ui/src/renderer.rs | 4 + ui/src/sdn/mod.rs | 3 + ui/src/sdn/zone_tree.rs | 299 +++++++++++++++++++ 19 files changed, 929 insertions(+), 14 deletions(-) create mode 100644 ui/images/icon-sdn.svg create mode 100644 ui/src/dashboard/sdn_zone_panel.rs create mode 100644 ui/src/sdn/zone_tree.rs Summary over all repositories: 20 files changed, 934 insertions(+), 14 deletions(-) -- Generated by git-murpp 0.8.0 _______________________________________________ pdm-devel mailing list pdm-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel