[pve-devel] [PATCH manager 2/3] change lxc migration to restart mode
Dominik Csapak
d.csapak at proxmox.com
Thu Dec 1 17:21:41 CET 2016
since we do not have 'online' migration for ct, we just use the checkbox
for restart migration
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/manager6/window/Migrate.js | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/www/manager6/window/Migrate.js b/www/manager6/window/Migrate.js
index 23e1e5b..5f76589 100644
--- a/www/manager6/window/Migrate.js
+++ b/www/manager6/window/Migrate.js
@@ -5,8 +5,18 @@ Ext.define('PVE.window.Migrate', {
migrate: function(target, online) {
var me = this;
+
+ var params = {
+ target: target
+ };
+
+ if (me.vmtype === 'qemu') {
+ params.online = online;
+ } else {
+ params.restart = online;
+ }
PVE.Utils.API2Request({
- params: { target: target, online: online },
+ params: params,
url: '/nodes/' + me.nodename + '/' + me.vmtype + '/' + me.vmid + "/migrate",
waitMsgTarget: me,
method: 'POST',
@@ -69,7 +79,7 @@ Ext.define('PVE.window.Migrate', {
uncheckedValue: 0,
defaultValue: 0,
checked: running,
- fieldLabel: gettext('Online')
+ fieldLabel: me.vmtype === 'qemu' ? gettext('Online') : gettext('Restart Mode')
}
]
});
--
2.1.4
More information about the pve-devel
mailing list