diff --git a/perl-xCAT/xCAT/FSPvm.pm b/perl-xCAT/xCAT/FSPvm.pm index 410493e17..6271f4aa6 100644 --- a/perl-xCAT/xCAT/FSPvm.pm +++ b/perl-xCAT/xCAT/FSPvm.pm @@ -1682,7 +1682,7 @@ sub xCATdB { $profile, $parent ); - return( xCAT::PPCdb::add_ppc( $hwtype, [$values] )); + return( xCAT::PPCdb::add_ppc( $hwtype, [$values],'','',"FSP" )); } return undef; } diff --git a/perl-xCAT/xCAT/PPCdb.pm b/perl-xCAT/xCAT/PPCdb.pm index f034906a3..2b7e30252 100644 --- a/perl-xCAT/xCAT/PPCdb.pm +++ b/perl-xCAT/xCAT/PPCdb.pm @@ -75,6 +75,7 @@ sub add_ppc { my $values = shift; my $not_overwrite = shift; my $otherinterfaces = shift; + my $callfile = shift; my @tabs = qw(ppc vpd nodehm nodelist nodetype hosts mac); my %db = (); ################################### @@ -119,7 +120,12 @@ sub add_ppc { # Specify CEC and Frame's mgt as fsp and bpa if ( $type =~ /^cec$/) { - $mgt = "fsp"; + if ( $callfile eq "PPC" ) { + $mgt = "hmc"; + } + if ( $callfile eq "FSP" ) { + $mgt = "fsp"; + } } if ( $type =~ /^frame$/) { $mgt = "bpa"; @@ -320,7 +326,7 @@ sub update_lpar { } } if (defined($write)) { - &add_ppc($hwtype, \@write_list); + &add_ppc($hwtype, \@write_list,'','',"FSP"); return ([@update_list,@write_list]); } else { foreach ( @tabs ) { diff --git a/perl-xCAT/xCAT/PPCscan.pm b/perl-xCAT/xCAT/PPCscan.pm index 413e93f05..d64f816e7 100644 --- a/perl-xCAT/xCAT/PPCscan.pm +++ b/perl-xCAT/xCAT/PPCscan.pm @@ -411,7 +411,7 @@ sub format_output { # Strip errors for results ####################################### my @val = grep( !/^#.*: ERROR /, @$values ); - xCAT::PPCdb::add_ppc( $hwtype, \@val ); + xCAT::PPCdb::add_ppc( $hwtype, \@val ,'','',"PPC"); } ########################################### diff --git a/perl-xCAT/xCAT/PPCvm.pm b/perl-xCAT/xCAT/PPCvm.pm index cf81988ce..d753a5efb 100644 --- a/perl-xCAT/xCAT/PPCvm.pm +++ b/perl-xCAT/xCAT/PPCvm.pm @@ -1913,7 +1913,7 @@ sub xCATdB { $profile, $parent ); - return( xCAT::PPCdb::add_ppc( $hwtype, [$values] )); + return( xCAT::PPCdb::add_ppc( $hwtype, [$values],'','',"PPC" )); } return undef; }