FSP/BPA redundancy: add supporting cec and frame

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8493 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2010-12-21 07:30:41 +00:00
parent 9f6781f316
commit 983701c21f

View File

@ -140,7 +140,7 @@ sub mkhwconn_parse_args
next;
}
if ( $nodetype eq 'fsp' and
if (( $nodetype eq 'fsp' or $nodetype eq 'cec') and
$node_parent and
$node_parent ne $node)
{
@ -152,6 +152,12 @@ sub mkhwconn_parse_args
my $my_frame_bpa_cec = getFrameMembers( $node, $vpdtab, $ppctab);
push @frame_members, @$my_frame_bpa_cec;
}
if ( $nodetype eq 'frame')
{
my $my_frame_bpa_cec = xCAT::DBobjUtils::getcecchildren( $node) ;
push @frame_members, @$my_frame_bpa_cec;
push @frame_members, $node;
}
}
}
@ -420,11 +426,16 @@ sub rmhwconn_parse_args
push @bpa_ctrled_nodes, $node;
}
if ( $nodetype eq 'bpa')
{
my $my_frame_bpa_cec = getFrameMembers( $node, $vpdtab, $ppctab);
push @frame_members, @$my_frame_bpa_cec;
}
if ( $nodetype eq 'frame')
{
# my $my_frame_bpa_cec = getFrameMembers( $node, $vpdtab, $ppctab);
my $my_frame_bpa_cec = xCAT::DBobjUtils::getchildren($node);
my $my_frame_bpa_cec = xCAT::DBobjUtils::getcecchildren($node);
push @frame_members, @$my_frame_bpa_cec;
push @frame_members, $node;
}
}