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 9E3D11FF0C1 for ; Wed, 26 Aug 2026 13:13:28 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 2905121501; Wed, 26 Aug 2026 13:13:28 +0200 (CEST) From: Hannes Laimer To: pve-devel@lists.proxmox.com Subject: [PATCH manager/network v2 0/2] sdn: add guest/nic selectors to IPAM create window Date: Wed, 26 Aug 2026 13:13:20 +0200 Message-ID: <20260826111322.1111478-1-h.laimer@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1787742795987 X-SPAM-LEVEL: Spam detection results: 0 AWL 1.050 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_MED -2.3 Sender listed at https://www.dnswl.org/, medium 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: HBSWEBB34YD3AWQNPK6SSTB2NWMD2NQE X-Message-ID-Hash: HBSWEBB34YD3AWQNPK6SSTB2NWMD2NQE X-MailFrom: h.laimer@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: Make it simpler to create IP mapping for guests, so MAC addresses don't have to be hand-copied over every time. This also adds the vmid as an optional POST parameter, so a vmid can be set on create, and not just on update through PUT. Aside from the POST endpoint accepting an optional vmid, no functional change is intended, this should only improve UX. The MAC field can still be filled by hand without using the selector, I guess there could be a use-case for having outside-macs be in our SDN IPAM, but I also think there's an argument for not allowing that. Either way, that stays unchanged with this. v2, thanks @Gabriel: - ui: actually submit MAC, setEditable(false) prevented submission pve-network: Hannes Laimer (1): api: sdn: ipam: add optional vmid to POST endpoint src/PVE/API2/Network/SDN/Ips.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) pve-manager: Hannes Laimer (1): ui: sdn: ipam: allow picking the nic instead of typing its MAC www/manager6/sdn/IpamEdit.js | 114 ++++++++++++++++++++++++++++++++++- 1 file changed, 111 insertions(+), 3 deletions(-) Summary over all repositories: 2 files changed, 116 insertions(+), 4 deletions(-) -- Generated by murpp 0.12.0