mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-27 01:15:34 +00:00 
			
		
		
		
	performance improvement. collect the CEC/Frames' Children in preprocess_nodes() of PPC.pm, instead of getIPaddress() in Utils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12274 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -818,6 +818,23 @@ sub preprocess_nodes { | ||||
|             return undef; | ||||
|         } | ||||
|     } | ||||
|      | ||||
|     %::CEC_FRAME_CHILDREN; | ||||
|     if ( $request->{fsp_api} == 1 || $request->{command} =~ /^(mkhwconn|rmhwconn)$/) { | ||||
|          my @ps = $tabs{ppc}->getAllNodeAttribs(['node','parent','nodetype']);  | ||||
|          for my $entry ( @ps ) { | ||||
|              my $tmp_parent = $entry->{parent}; | ||||
|              my $tmp_node = $entry->{node}; | ||||
|              my $tmp_type = $entry->{nodetype}; | ||||
|              if(defined($tmp_node) && defined($tmp_type) && ($tmp_type =~ /^(fsp|bpa)$/ && $tmp_parent) ) { | ||||
|                  #print "$tmp_node\n"; | ||||
|                  $::CEC_FRAME_CHILDREN{$tmp_parent} .= "$tmp_node,"; | ||||
|              } | ||||
|          } | ||||
|  | ||||
|     } | ||||
|  | ||||
|     # print Dumper(\%::CEC_FRAME_CHILDREN); | ||||
|  | ||||
|     ########################################## | ||||
|     # Group nodes | ||||
|   | ||||
		Reference in New Issue
	
	Block a user