From a5c6f451a2af684008508892096df695689bbbeb Mon Sep 17 00:00:00 2001 From: xq2005 Date: Wed, 13 Jun 2012 09:47:48 +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/trunk@13076 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({