From 43de2697b322710740fe8882353c5223b6b6783e Mon Sep 17 00:00:00 2001 From: phamt Date: Fri, 8 Mar 2013 17:41:44 +0000 Subject: [PATCH] Backport z/VM code in trunk to 2.8 branch. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15441 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/configure/service.js | 138 ++++++-- xCAT-UI/js/custom/zvm.js | 45 ++- xCAT-UI/js/custom/zvmUtils.js | 79 +++++ xCAT-UI/js/service/service.js | 70 ++-- xCAT-UI/lib/functions.php | 2 +- xCAT-UI/lib/srv_functions.php | 2 +- xCAT-UI/xcat/plugins/web.pm | 59 ++++ xCAT-UI/xcat/plugins/webportal.pm | 113 ++++++- xCAT-server/lib/xcat/plugins/zvm.pm | 501 ++++++++++++++++------------ 9 files changed, 725 insertions(+), 284 deletions(-) diff --git a/xCAT-UI/js/configure/service.js b/xCAT-UI/js/configure/service.js index 00a4fb9ea..25ba5894a 100644 --- a/xCAT-UI/js/configure/service.js +++ b/xCAT-UI/js/configure/service.js @@ -731,7 +731,7 @@ function configGroupPanel(data) { // Create table var tableId = panelId + 'Datatable'; var table = new DataTable(tableId); - table.init(['', 'Name', 'Selectable', 'IP', 'Hostname', 'Network', 'Description']); + table.init(['', 'Name', 'Selectable', 'IP', 'Hostname', 'Description']); // Insert groups into table var nodePos = 0; @@ -787,12 +787,6 @@ function configGroupPanel(data) { desc = jQuery.trim(desc); } - // Save network - if (tmp[j].indexOf('network:') > -1) { - network = tmp[j].replace('network:', ''); - network = jQuery.trim(network); - } - // Is the group selectable? if (tmp[j].indexOf('selectable:') > -1) { selectable = tmp[j].replace('selectable:', ''); @@ -802,7 +796,7 @@ function configGroupPanel(data) { } // Columns are: name, selectable, network, and description - var cols = new Array(name, selectable, ip, hostname, network, desc); + var cols = new Array(name, selectable, ip, hostname, desc); // Add remove button where id = user name cols.unshift(''); @@ -851,10 +845,9 @@ function configGroupPanel(data) { var selectable = cols.eq(2).text(); var ip = cols.eq(3).text(); var hostnames = cols.eq(4).text(); - var network = cols.eq(5).text(); - var description = cols.eq(6).text(); + var description = cols.eq(5).text(); - editGroupDialog(group, selectable, ip, hostnames, network, description); + editGroupDialog(group, selectable, ip, hostnames, description); } } }); @@ -913,9 +906,10 @@ function groupDialog() { var selectable = $('
'); var ip = $('
'); var hostnames = $('
'); - var network = $('
'); var comments = $('
'); - groupForm.append(group, selectable, ip, hostnames, network, comments); + var ipPool = $('