Fix bug 3293003: lshwconn frame should give BPA's connection status

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9424 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2011-04-28 07:57:48 +00:00
parent 67bf32985c
commit 8ca38ff616

View File

@ -332,7 +332,31 @@ sub lshwconn_parse_args
{
return( ["Failed to open table 'nodehm'.\n"]);
}
#need to transfer CEC/Frame to FSPs/BPAs
my @inodes = ();
my @validnodes = ();
my $pnode;
my $cnode;
if ($request->{node})
{
foreach $pnode(@{$request->{node}})
{
my $ntype = xCAT::DBobjUtils->getnodetype($pnode);
if ($ntype =~ /^(cec|frame)$/)
{
$cnode = xCAT::DBobjUtils->getchildren($pnode);
foreach (@$cnode)
{
push @validnodes, $_;
}
} else
{
push @validnodes, $pnode;
}
}
$request->{node} = \@validnodes;
}
my $nodetype;
for my $node ( @{$request->{node}})
{