From d8bb801422e8ced06d7f33c5b64155ad34c3e4aa Mon Sep 17 00:00:00 2001 From: jjhua Date: Sat, 28 Apr 2012 08:59:41 +0000 Subject: [PATCH] performance enhancement for getIPaddress() in fsp.pm git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12382 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/fsp.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/fsp.pm b/xCAT-server/lib/xcat/plugins/fsp.pm index c7c4c1904..605da02a2 100644 --- a/xCAT-server/lib/xcat/plugins/fsp.pm +++ b/xCAT-server/lib/xcat/plugins/fsp.pm @@ -249,9 +249,11 @@ sub getfspcon { my $fsp_name = $att->{hcp}; my $id = $att->{id}; - + + my $request; + xCAT::FSPUtils::getHcpAttribs($request, \%tabs); #my $fsp_ip = xCAT::Utils::getNodeIPaddress( $fsp_name ); - my $fsp_ip = xCAT::Utils::getIPaddress( $fsp_name ); + my $fsp_ip = xCAT::FSPUtils::getIPaddress($request, $type, $fsp_name ); if(!defined($fsp_ip)) { #return "Failed to get the $fsp_name\'s ip"; $rsp->{node}->[0]->{error}=["Can't get node address"];