FSP/BPA redundancy: add supporting cec and frame

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8429 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2010-12-16 02:52:16 +00:00
parent 209306f234
commit f4d2c81700

View File

@ -964,7 +964,7 @@ sub resolve {
# Check for valid "type"
#################################
my ($type) = grep(
/^$::NODETYPE_LPAR|$::NODETYPE_OSI|$::NODETYPE_BPA|$::NODETYPE_FSP$/,
/^$::NODETYPE_LPAR|$::NODETYPE_OSI|$::NODETYPE_BPA|$::NODETYPE_FSP|$::NODETYPE_CEC|$::NODETYPE_FRAME$/,
split /,/, $ent->{nodetype} );
if ( !defined( $type )) {
@ -1756,7 +1756,7 @@ sub process_request {
}
#print "lasthcp_type:$lasthcp_type ;thishcp_type:$thishcp_type\n";
if(defined($lasthcp_type)) {
if ( ($lasthcp_type =~ /^(hmc)$/ && $thishcp_type =~ /^(fsp|bpa|cec)$/) or (($lasthcp_type =~ /^(fsp|bpa|cec)$/ ) && ($thishcp_type =~ /^(hmc)$/ )) ) {
if ( ($lasthcp_type =~ /^(hmc)$/ && $thishcp_type =~ /^(fsp|bpa)$/) or (($lasthcp_type =~ /^(fsp|bpa)$/ ) && ($thishcp_type =~ /^(hmc)$/ )) ) {
$callback->({data=>["the $node\'s hcp type is different from the other's in the specified noderange in the 'ppc' table."]});
return;
}