/** * Execute when the DOM is fully loaded */ $(document).ready(function() { // Load utility scripts (if any) }); /** * Constructor */ var ipmiPlugin = function() { }; /** * Steps for hardware discovery wizard * * @return Discovery steps */ ipmiPlugin.prototype.getStep = function() { return [ 'Basic patterns', 'Switches', 'Network', 'Services', 'Power on hardware' ]; }; /** * Return step init function for hardware discovery wizard */ ipmiPlugin.prototype.getInitFunction = function() { return [ idataplexInitBasic, idataplexInitSwitch, idataplexInitNetwork, idataplexInitService, idataplexInitPowerOn ]; }; ipmiPlugin.prototype.getNextFunction = function() { return [ idataplexCheckBasic, undefined, idataplexCheckNetwork, undefined, undefined ]; }; /** * Clone node (service page) * * @param node Node to clone */ ipmiPlugin.prototype.serviceClone = function(node) { }; /** * Load provision page (service page) * * @param tabId Tab ID where page will reside */ ipmiPlugin.prototype.loadServiceProvisionPage = function(tabId) { }; /** * Show node inventory (service page) * * @param data Data from HTTP request */ ipmiPlugin.prototype.loadServiceInventory = function(data) { }; /** * Load node inventory * * @param data Data from HTTP request */ ipmiPlugin.prototype.loadInventory = function(data) { var args = data.msg.split(','); var tabId = args[0].replace('out=', ''); var node = args[1].replace('node=', ''); // Get node inventory var inv = data.rsp; // Remove loader $('#' + tabId).find('img').remove(); // Create division to hold inventory var invDiv = $('
'); // Create a fieldset var fieldSet = $(''); var legend = $(''); fieldSet.append(legend); var oList = $('Select a group to view its nodes
It will take several minutes before the nodes are up and ready. Use nodestat to check the status of the install.'); } } } /** * Step 2: Init the iDataplex basic pattern */ function idataplexInitBasic() { var tempip = ''; $('#discoverContentDiv').empty(); $('.tooltip').remove(); var showString = '
Nodes: | |||
Name Range: | '; if (getDiscoverEnv('idataplexnodeip')) { tempip = getDiscoverEnv('idataplexnodeip'); } else { tempip = '172.30.20.1'; } showString += ' | Start IP: | |
Nodes number per Frame: | |||
BMCs: | |||
Name Range: | '; if (getDiscoverEnv('idataplexbmcip')) { tempip = getDiscoverEnv('idataplexbmcip'); } else { tempip = '172.30.120.1'; } showString += ' | Start IP: | |
Switches: | |||
Name Range: | '; if (getDiscoverEnv('idataplexswitchip')) { tempip = getDiscoverEnv('idataplexswitchip'); } else { tempip = '172.30.10.1'; } showString += ' | Start IP: | |
Nodes number per Switch: |
You defined ' + switchArray.length
+ ' switches in last step. Configure them manually please:
';
showString += '
DHCP Dynamic Range: | - |