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 319BC1FF137 for ; Tue, 03 Feb 2026 09:16:48 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 90640167EE; Tue, 3 Feb 2026 09:17:16 +0100 (CET) From: Maximiliano Sandoval To: pdm-devel@lists.proxmox.com Subject: [PATCH proxmox-datacenter-manager v2 2/2] cli: add target-vmid parameter to remote_migrate_lxc Date: Tue, 3 Feb 2026 09:17:09 +0100 Message-ID: <20260203081710.48911-2-m.sandoval@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260203081710.48911-1-m.sandoval@proxmox.com> References: <20260203081710.48911-1-m.sandoval@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1770106556301 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.089 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 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: CBCYXYR4NO65A5HMLG6P3ZZGHPCURWDV X-Message-ID-Hash: CBCYXYR4NO65A5HMLG6P3ZZGHPCURWDV X-MailFrom: m.sandoval@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 Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Adds a --target-vmid parameter to `proxmox-datacenter-manager-client pve lxc remote-migrate`. Signed-off-by: Maximiliano Sandoval --- cli/client/src/pve.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cli/client/src/pve.rs b/cli/client/src/pve.rs index 5c2a1abd..19bd0980 100644 --- a/cli/client/src/pve.rs +++ b/cli/client/src/pve.rs @@ -918,6 +918,10 @@ async fn migrate_lxc( }, vmid: { schema: VMID_SCHEMA }, target: { schema: REMOTE_ID_SCHEMA }, + "target-vmid": { + optional: true, + schema: VMID_SCHEMA, + }, delete: { description: "Delete the original VM and related data after successful migration.", optional: true, @@ -968,6 +972,7 @@ async fn remote_migrate_lxc( node: Option, vmid: u32, target: String, + target_vmid: Option, online: Option, delete: Option, map_storage: Vec, @@ -986,6 +991,9 @@ async fn remote_migrate_lxc( if let Some(bwlimit) = bwlimit { params = params.bwlimit(bwlimit); } + if let Some(target_vmid) = target_vmid { + params = params.target_vmid(target_vmid); + } if restart { params = params.restart(true, timeout.map(Duration::from_secs)); } -- 2.47.3