From 04363570814a4fe4d0045a455285aacc09d7390b Mon Sep 17 00:00:00 2001 From: xq2005 Date: Wed, 13 Jun 2012 09:49:20 +0000 Subject: [PATCH] add input area which user can configure the password for bpa, fsp git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13077 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/custom/hmc.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/xCAT-UI/js/custom/hmc.js b/xCAT-UI/js/custom/hmc.js index 044810dd8..589c397de 100644 --- a/xCAT-UI/js/custom/hmc.js +++ b/xCAT-UI/js/custom/hmc.js @@ -821,6 +821,13 @@ function powerInitSiteTable(operType) { * Step 4: When the values are ready, create the table */ function showSiteArea() { + var adminpasswd = getDiscoverEnv('adminpasswd'); + adminpasswd = adminpasswd ? adminpasswd : "admin"; + var generalpasswd = getDiscoverEnv('generalpasswd'); + generalpasswd = generalpasswd? generalpasswd : "general"; + var hmcpasswd = getDiscoverEnv('hmcpasswd'); + hmcpasswd = hmcpasswd ? hmcpasswd : "abc123"; + var showString = ''; showString += ''; + showString += ''; + showString += ''; + showString += ''; showString += '
Domain Name:-
admin password for FRAME and CEC:
general password for FRAME and CEC:
hmc password for FRAME and CEC:
'; $('#discoverContentDiv div').eq(0).append(showString); @@ -907,6 +923,18 @@ function checkSiteTable(operType) { if (!getDiscoverEnv('ipEnd')) { errMessage += 'Input the DHCP Dynamic Range.
'; } + + if (!getDiscoverEnv('adminpasswd')) { + errMessage += 'Input the admin\'s password for FRAME and CEC.
'; + } + + if (!getDiscoverEnv('generalpasswd')) { + errMessage += 'Input the general\'s password for FRAME and CEC.
'; + } + + if (!getDiscoverEnv('hmcpasswd')) { + errMessage += 'Input the hmc\'s password for FRAME and CEC.
'; + } if ('' == errMessage) { $.ajax({