From 931e3e20598eadfbaea313518e4faf0efb759681 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Fri, 15 Jun 2012 09:40:04 +0000 Subject: [PATCH] create the setup configure file with new format git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13106 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/custom/hmc.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xCAT-UI/js/custom/hmc.js b/xCAT-UI/js/custom/hmc.js index a3281f65a..7f97dbbe7 100644 --- a/xCAT-UI/js/custom/hmc.js +++ b/xCAT-UI/js/custom/hmc.js @@ -1248,6 +1248,7 @@ function createSetupFile() { } else { fileContent += ' use-direct-fsp-control = 1\n'; } + fileContent += ' topology = 8D \n'; // DHCP IP range fileContent += 'xcat-service-lan:\n'; @@ -1258,6 +1259,7 @@ function createSetupFile() { if (getDiscoverEnv('hmcName')) { fileContent += 'xcat-hmcs:\n'; fileContent += ' hostname-range = ' + getDiscoverEnv('hmcName') + '\n'; + fileContent += ' starting-ip = ' + getDiscoverEnv('hmcstartip') + '\n'; } // Frame @@ -1266,18 +1268,27 @@ function createSetupFile() { fileContent += ' num-frames-per-hmc = ' + getDiscoverEnv('frameNumPerHmc') + '\n'; fileContent += ' vpd-file = /tmp/webvpd.stanza\n'; + fileContent += ' vlan-1 = ' + getDiscoverEnv('vlan1ip') + '\n'; + fileContent += ' vlan-2 = ' + getDiscoverEnv('vlan2ip') + '\n'; // CEC fileContent += 'xcat-cecs:\n'; fileContent += ' hostname-range = ' + getDiscoverEnv('cecName') + '\n'; fileContent += ' delete-unused-cecs = 1\n'; fileContent += ' supernode-list = /tmp/websupernode.txt\n'; + fileContent += ' delete-unused-cecs = 1 \n'; + + //Building Block + fileContent += 'xcat-building-blocks:\n'; + fileContent += ' num-frames-per-bb = ' + getDiscoverEnv('framepbb') + '\n'; + fileContent += ' num-cecs-per-bb = ' + getDiscoverEnv('cecpbb') + '\n'; // LPAR fileContent += 'xcat-lpars:\n'; fileContent += ' num-lpars-per-cec = ' + getDiscoverEnv('lparNumPerCec') + '\n'; fileContent += ' hostname-range = ' + getDiscoverEnv('lparName') + '\n'; + fileContent += ' starting-ip = ' + getDiscoverEnv('lparstartip') + '\n'; $.ajax({ url : 'lib/cmd.php',