all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Maximiliano Sandoval <m.sandoval@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [PATCH proxmox-datacenter-manager] cli: add target-vmid parameter to remote_migrate_qemu
Date: Mon,  2 Feb 2026 15:08:14 +0100	[thread overview]
Message-ID: <20260202140817.431548-1-m.sandoval@proxmox.com> (raw)

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





             reply	other threads:[~2026-02-02 14:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-02 14:08 Maximiliano Sandoval [this message]
2026-02-03  8:18 ` superseded: " Maximiliano Sandoval

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260202140817.431548-1-m.sandoval@proxmox.com \
    --to=m.sandoval@proxmox.com \
    --cc=pdm-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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