all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH proxmox-datacenter-manager] cli: add target-vmid parameter to remote_migrate_qemu
@ 2026-02-02 14:08 Maximiliano Sandoval
  2026-02-03  8:18 ` superseded: " Maximiliano Sandoval
  0 siblings, 1 reply; 2+ messages in thread
From: Maximiliano Sandoval @ 2026-02-02 14:08 UTC (permalink / raw)
  To: pdm-devel

Adds a --target-vmid parameter to `proxmox-datacenter-manager-client pve
qemu remote-migrate`.

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
 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 16289986..5c2a1abd 100644
--- a/cli/client/src/pve.rs
+++ b/cli/client/src/pve.rs
@@ -546,6 +546,10 @@ async fn migrate_qemu(
             },
             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,
@@ -587,6 +591,7 @@ async fn remote_migrate_qemu(
     node: Option<String>,
     vmid: u32,
     target: String,
+    target_vmid: Option<u32>,
     online: Option<bool>,
     delete: Option<bool>,
     map_storage: Vec<String>,
@@ -603,6 +608,9 @@ async fn remote_migrate_qemu(
     if let Some(bwlimit) = bwlimit {
         params = params.bwlimit(bwlimit);
     }
+    if let Some(target_vmid) = target_vmid {
+        params = params.target_vmid(target_vmid);
+    }
     for mapping in map_storage {
         let pos = mapping
             .find(':')
-- 
2.47.3





^ permalink raw reply	[flat|nested] 2+ messages in thread

* superseded: [PATCH proxmox-datacenter-manager] cli: add target-vmid parameter to remote_migrate_qemu
  2026-02-02 14:08 [PATCH proxmox-datacenter-manager] cli: add target-vmid parameter to remote_migrate_qemu Maximiliano Sandoval
@ 2026-02-03  8:18 ` Maximiliano Sandoval
  0 siblings, 0 replies; 2+ messages in thread
From: Maximiliano Sandoval @ 2026-02-03  8:18 UTC (permalink / raw)
  To: pdm-devel

Maximiliano Sandoval <m.sandoval@proxmox.com> writes:

> Adds a --target-vmid parameter to `proxmox-datacenter-manager-client pve
> qemu remote-migrate`.
>
> Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>

Superseded-by https://lore.proxmox.com/all/20260203081710.48911-1-m.sandoval@proxmox.com/.

-- 
Maximiliano




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-02-03  8:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-02 14:08 [PATCH proxmox-datacenter-manager] cli: add target-vmid parameter to remote_migrate_qemu Maximiliano Sandoval
2026-02-03  8:18 ` superseded: " Maximiliano Sandoval

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal