fix bug 3578: "rscan cmm -u|-w" will write information of System p blade into ipmi table

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16346 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhaoertao 2013-05-17 02:40:15 +00:00
parent 97f11587b0
commit 2e53f21b7d

View File

@ -1698,7 +1698,7 @@ sub rscan {
$u4->{nodetype} = "ppc,osi";
} elsif ($type eq "blade") {
$u4->{nodetype} = "mp,osi";
} elsif ($type eq "mm" || $type eq "cmm") {
} elsif ($type eq "mm" || $type eq "cmm" || $type eq "xblade") {
$u4->{nodetype} = "mp";
}
$db{nodetype}->setAttribs($k4,$u4);
@ -1712,11 +1712,13 @@ sub rscan {
$db{vpd}->setAttribs($k5,$u5);
$db{vpd}{commit} = 1;
# Update the entry in ipmi table for x blade
my ($k6, $u6);
$k6->{node} = $name;
$u6->{bmc} = $ip;
$db{ipmi}->setAttribs($k6,$u6);
$db{ipmi}{commit} = 1;
if ($type eq "xblade") {
my ($k6, $u6);
$k6->{node} = $name;
$u6->{bmc} = $ip;
$db{ipmi}->setAttribs($k6,$u6);
$db{ipmi}{commit} = 1;
}
}
foreach ( @tabs ) {
if ( exists( $db{$_}{commit} )) {