Add hmc and ivm to nodetype table - Line #46

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@931 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sakolish 2008-03-28 16:42:19 +00:00
parent 55524bb351
commit 65e5b92b68

View File

@ -40,6 +40,23 @@ sub add_ppc {
$parent,
$ips ) = split /,/;
###############################
# Update nodetype table
###############################
if ( $type =~ /^fsp|bpa|lpar|hmc|ivm$/ ) {
my ($k,$u);
my %nodetype = (
fsp => $::NODETYPE_FSP,
bpa => $::NODETYPE_BPA,
lpar =>"$::NODETYPE_LPAR,$::NODETYPE_OSI",
hmc => $::NODETYPE_HMC,
ivm => $::NODETYPE_IVM,
);
$k->{node} = $name;
$u->{nodetype} = $nodetype{$type};
$db{nodetype}->setAttribs( $k,$u );
$db{nodetype}{commit} = 1;
}
###############################
# Update ppc table
###############################
@ -62,27 +79,13 @@ sub add_ppc {
$db{nodelist}->setAttribs( $k1,$u1 );
$db{nodelist}{commit} = 1;
###########################
# Update nodetype table
###########################
my ($k2,$u2);
my %nodetype = (
fsp => $::NODETYPE_FSP,
bpa => $::NODETYPE_BPA,
lpar =>"$::NODETYPE_LPAR,$::NODETYPE_OSI"
);
$k2->{node} = $name;
$u2->{nodetype} = $nodetype{$type};
$db{nodetype}->setAttribs( $k2,$u2 );
$db{nodetype}{commit} = 1;
###########################
# Update nodehm table
###########################
my ($k3,$u3);
$k3->{node} = $name;
$u3->{mgt} = $hwtype;
$db{nodehm}->setAttribs( $k3,$u3 );
my ($k2,$u2);
$k2->{node} = $name;
$u2->{mgt} = $hwtype;
$db{nodehm}->setAttribs( $k2,$u2 );
$db{nodehm}{commit} = 1;
}
###############################
@ -286,3 +289,4 @@ sub credentials {