diff --git a/perl-xCAT/xCAT/FSPconn.pm b/perl-xCAT/xCAT/FSPconn.pm index ba80c5448..c3f3d74a8 100644 --- a/perl-xCAT/xCAT/FSPconn.pm +++ b/perl-xCAT/xCAT/FSPconn.pm @@ -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}}) {