Skip to content

Commit

Permalink
Live migration RDMA support: ui changes
Browse files Browse the repository at this point in the history
Added a new checkbox in ui/pages/guest-migration.html.tmpl, giving
the user the choice of enabling RDMA transport in the migration
process.

Signed-off-by: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>
  • Loading branch information
danielhb authored and alinefm committed Jan 19, 2017
1 parent 29b237a commit cda5bd1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
7 changes: 4 additions & 3 deletions ui/js/src/kimchi.guest_livemigration.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Project Kimchi
*
* Copyright IBM Corp, 2016
* Copyright IBM Corp, 2016-2017
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -80,13 +80,14 @@ kimchi.getLiveMigrationInputValues = function() {
var username = $("#user").val();
var password = $("#password").val();
var toDelete = $("#deleteVM").prop('checked');
var enable_rdma = $("#enableRDMA").prop('checked');
var data = {};
data[kimchi.selectedGuest] = {
values: {
remote_host: host
remote_host: host,
enable_rdma: enable_rdma
},
toDelete: toDelete

};
if (username && password) {
data[kimchi.selectedGuest].values.user = username;
Expand Down
10 changes: 9 additions & 1 deletion ui/pages/guest-migration.html.tmpl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#*
* Project Kimchi
*
* Copyright IBM Corp, 2016
* Copyright IBM Corp, 2016-2017
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -49,6 +49,14 @@
<input type="password" class="form-control" id="password" />
<p class="help-block">
<i class="fa fa-info-circle"></i> $_("Password of the user in the remote host")</p>
</div>
<div class="form-group">
<input id="enableRDMA" class="wok-checkbox" type="checkbox" value="" />
<label for="enableRDMA" id="labelEnableRDMA">$_("Use RDMA transport")</label>
<p class="help-block"><i class="fa fa-info-circle"></i> $_("Check this option only if RDMA is properly configured in both source and destination hosts, otherwise migration will fail.")
</p>


</div>
<div class="form-group">
<input id="deleteVM" class="wok-checkbox" type="checkbox" value="" />
Expand Down

0 comments on commit cda5bd1

Please sign in to comment.