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 v2 2/2] cli: add target-vmid parameter to remote_migrate_lxc
Date: Tue,  3 Feb 2026 09:17:09 +0100	[thread overview]
Message-ID: <20260203081710.48911-2-m.sandoval@proxmox.com> (raw)
In-Reply-To: <20260203081710.48911-1-m.sandoval@proxmox.com>

Adds a --target-vmid parameter to `proxmox-datacenter-manager-client pve
lxc 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 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<String>,
     vmid: u32,
     target: String,
+    target_vmid: Option<u32>,
     online: Option<bool>,
     delete: Option<bool>,
     map_storage: Vec<String>,
@@ -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





      reply	other threads:[~2026-02-03  8:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-03  8:17 [PATCH proxmox-datacenter-manager v2 1/2] cli: add target-vmid parameter to remote_migrate_qemu Maximiliano Sandoval
2026-02-03  8:17 ` Maximiliano Sandoval [this message]

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=20260203081710.48911-2-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