fix bug 3492916 :Hardware connection issue between HMC and CEC
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11695 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
7b7b5bfd1b
commit
aa859d29bd
@ -2443,7 +2443,7 @@ sub getHCPsOfNodes
|
||||
my $i = 0;
|
||||
unless ( $request->{sfp} ) {
|
||||
for my $n (@$nodes) {
|
||||
if (@$typeref[$i++] =~ /^fsp|bpa$/) {
|
||||
if ($$typeref{$n} =~ /^fsp|bpa$/) {
|
||||
my $np = $ppctab->getNodeAttribs( $n, [qw(parent)]);
|
||||
if ($np) { # use parent(frame/cec)'s sfp attributes first,for high end machine with 2.5/2.6+ database
|
||||
my $psfp = $ppctab->getNodeAttribs( $np->{parent}, [qw(sfp)]);
|
||||
@ -2467,7 +2467,7 @@ sub getHCPsOfNodes
|
||||
$newhcp{$n}{hcp} = [$sfp];
|
||||
$newhcp{$n}{num} = 1;
|
||||
# set the sfp attribute to the database
|
||||
if (@$typeref[$i++] =~ /^fsp|bpa$/) {
|
||||
if ($$typeref{$n} =~ /^fsp|bpa$/) {
|
||||
my $np = $ppctab->getNodeAttribs( $n, [qw(parent)]);
|
||||
$sfphash{$np}{sfp} = $sfp if ( $np );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user