From bbc35d3d6f3fb465cf1fa049fff4bcaef4a934e2 Mon Sep 17 00:00:00 2001 From: yinle Date: Mon, 20 Dec 2010 13:43:11 +0000 Subject: [PATCH] FSP/BPA redundancy: add supporting of CEC and Frame; Modify the way rmhwconn used to find the nodes. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8482 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPconn.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/perl-xCAT/xCAT/FSPconn.pm b/perl-xCAT/xCAT/FSPconn.pm index 56a4408c9..242fb2ab1 100644 --- a/perl-xCAT/xCAT/FSPconn.pm +++ b/perl-xCAT/xCAT/FSPconn.pm @@ -309,8 +309,8 @@ sub lshwconn_parse_args { return( ["Failed to get nodehm.mgt value for node $node.\n"]); } - if ( $ent->{nodetype} ne 'fsp' - and $ent->{nodetype} ne 'bpa') + if ( $ent->{nodetype} ne 'fsp' and $ent->{nodetype} ne 'cec' + and $ent->{nodetype} ne 'bpa' and $ent->{nodetype} ne 'frame') { return( ["Node type $ent->{nodetype} is not supported for this command in FSPAPI\n"]); } @@ -420,9 +420,10 @@ sub rmhwconn_parse_args push @bpa_ctrled_nodes, $node; } - if ( $nodetype eq 'bpa') + if ( $nodetype eq 'frame') { - my $my_frame_bpa_cec = getFrameMembers( $node, $vpdtab, $ppctab); + # my $my_frame_bpa_cec = getFrameMembers( $node, $vpdtab, $ppctab); + my $my_frame_bpa_cec = xCAT::DBobjUtils::getchildren($node); push @frame_members, @$my_frame_bpa_cec; } }