[pve-devel] [PATCH qemu-server 1/7] api2 : migrate_vm : add migration_type "external"

Dietmar Maurer dietmar at proxmox.com
Tue Nov 13 11:22:23 CET 2018


I would like to move forward with that, but changing an existing API makes that difficult.

I would suggest to add a second API entry point instead:

__PACKAGE__->register_method({
    name => 'external_migrate_vm',
    path => '{vmid}/external_migrate',
    method => 'POST',
...

Feel free to choose a better name ;-) We can the mark this API as unstable/experimental, and modify
the parameters/types. IMHO most existing parameters does not really makes sense with external migration.
I guess it is still possible to factor out most common code to avoid code duplication. 
 
What do you think?




More information about the pve-devel mailing list