2007-12-05 22:14:56 +00:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
|
|
|
|
package xCAT::GlobalDef;
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
=head1 xCAT::GlobalDef
|
|
|
|
|
|
|
|
=head2 Package Description
|
|
|
|
|
|
|
|
This module contains all the global info for xCAT.
|
|
|
|
|
|
|
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
#--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
# valid values for nodelist.nodetype column
|
|
|
|
$::NODETYPE_OSI="osi";
|
2008-02-14 19:44:53 +00:00
|
|
|
$::NODETYPE_LPAR="lpar";
|
2008-02-14 19:15:37 +00:00
|
|
|
$::NODETYPE_BPA="bpa";
|
|
|
|
$::NODETYPE_FSP="fsp";
|
2008-03-28 15:41:33 +00:00
|
|
|
$::NODETYPE_HMC="hmc";
|
|
|
|
$::NODETYPE_IVM="ivm";
|
2010-12-07 05:50:21 +00:00
|
|
|
$::NODETYPE_FRAME="frame";
|
|
|
|
$::NODETYPE_CEC="cec";
|
2007-12-05 22:14:56 +00:00
|
|
|
|
|
|
|
# valid values for nodelist.status columns or other status
|
2008-09-17 19:06:45 +00:00
|
|
|
$::STATUS_ACTIVE="alive";
|
|
|
|
$::STATUS_INACTIVE="unreachable";
|
|
|
|
$::STATUS_INSTALLING="installing";
|
|
|
|
$::STATUS_INSTALLED="installed";
|
|
|
|
$::STATUS_BOOTING="booting";
|
|
|
|
$::STATUS_NETBOOTING="netbooting";
|
|
|
|
$::STATUS_BOOTED="booted";
|
|
|
|
$::STATUS_POWERING_OFF="powering-off";
|
|
|
|
$::STATUS_DISCOVERING="discovering";
|
2008-09-30 20:00:46 +00:00
|
|
|
$::STATUS_CONFIGURING="configuring";
|
|
|
|
$::STATUS_STANDING_BY="standingby";
|
|
|
|
$::STATUS_SHELL="shell";
|
2008-09-25 03:04:56 +00:00
|
|
|
$::STATUS_DEFINED="defined";
|
2007-12-05 22:14:56 +00:00
|
|
|
$::STATUS_UNKNOWN="unknown";
|
|
|
|
|
2008-09-30 20:00:46 +00:00
|
|
|
#defined->[discovering]->[configuring]->[standingby]->installing->[installed]->booting->alive, defined->[discovering]->[configuring]-[standingby]->netbooting->booted->alive, alive/unreachable->booting->alive, powering-off->unreachable, alive->unreachable
|
2008-09-25 03:04:56 +00:00
|
|
|
%::NEXT_NODESTAT_VAL=(
|
2008-09-30 20:00:46 +00:00
|
|
|
$::STATUS_DEFINED=>{$::STATUS_DISCOVERING=>1, $::STATUS_INSTALLING=>1, $::STATUS_NETBOOTING=>1, $::STATUS_POWERING_OFF=>1, $::STATUS_BOOTING=>1, $::STATUS_CONFIGURING=>1},
|
|
|
|
$::STATUS_DISCOVERING=>{$::STATUS_INSTALLING=>1, $::STATUS_NETBOOTING=>1, $::STATUS_CONFIGURING=>1, $::STATUS_BOOTING=>1},
|
|
|
|
$::STATUS_CONFIGURING=>{$::STATUS_INSTALLING=>1, $::STATUS_NETBOOTING=>1, $::STATUS_STANDING_BY=>1},
|
|
|
|
$::STATUS_INSTALLING =>{$::STATUS_INSTALLED=>1, $::STATUS_BOOTING=>1},
|
2008-09-29 14:53:58 +00:00
|
|
|
$::STATUS_INSTALLED =>{$::STATUS_BOOTING=>1},
|
2008-09-30 20:00:46 +00:00
|
|
|
$::STATUS_BOOTING=>{$::STATUS_BOOTED=>1, $::STATUS_ACTIVE=>1, $::STATUS_INACTIVE=>1},
|
2008-09-25 03:04:56 +00:00
|
|
|
$::STATUS_NETBOOTING=>{$::STATUS_BOOTED=>1},
|
|
|
|
$::STATUS_BOOTED=>{$::STATUS_ACTIVE=>1, $::STATUS_INACTIVE=>1},
|
2008-09-30 20:00:46 +00:00
|
|
|
$::STATUS_ACTIVE=>{$::STATUS_INACTIVE=>1, $::STATUS_DISCOVERING=>1, $::STATUS_CONFIGURING=>1, $::STATUS_INSTALLING=>1, $::STATUS_NETBOOTING=>1, $::STATUS_POWERING_OFF=>1, $::STATUS_BOOTING=>1},
|
|
|
|
$::STATUS_INACTIVE=>{$::STATUS_ACTIVE=>1, $::STATUS_DISCOVERING=>1, $::STATUS_CONFIGURING=>1, $::STATUS_INSTALLING=>1, $::STATUS_NETBOOTING=>1, $::STATUS_POWERING_OFF=>1, $::STATUS_BOOTING=>1},
|
2008-09-25 03:04:56 +00:00
|
|
|
$::STATUS_POWERING_OFF=>{$::STATUS_INACTIVE=>1}
|
|
|
|
);
|
|
|
|
|
|
|
|
|
2007-12-05 22:14:56 +00:00
|
|
|
1;
|
|
|
|
|