change the nodetype to ppc for lpar and hmc, change the hwtype to lpar and hmc to lpar and hmc.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10032 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2011-07-07 06:31:44 +00:00
parent 0f2ffec2b5
commit 1f63d84caa

View File

@ -347,7 +347,8 @@ sub getNodeinfo
if ($value)
{ # this is an LPAR
$xcatline = " id=$value\n";
$xcatline .= " nodetype=lpar\n";
$xcatline .= " hwtype=lpar\n";
$xcatline .= " nodetype=ppc\n";
}
}
}
@ -523,9 +524,10 @@ sub getDevinfo
if ($value)
{
my $lcvalue = lc($value);
$xcatline = " nodetype=$lcvalue\n";
$xcatline = " nodetype=ppc\n";
if ($lcvalue eq "hmc") {
$xcatline .= " mgt=$lcvalue\n";
$xcatline .= " hwtype=$lcvalue\n";
}
}
}