From ca2139e2e5af6601da833e79547554d549b61b7c Mon Sep 17 00:00:00 2001 From: ligc Date: Fri, 7 May 2010 02:49:07 +0000 Subject: [PATCH] call NetworkUtils.pm subroutines instead of Utils.pm subroutines git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6011 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/xcat2nim.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/xcat2nim.pm b/xCAT-server/lib/xcat/plugins/xcat2nim.pm index f2049c50e..b66ad0921 100644 --- a/xCAT-server/lib/xcat/plugins/xcat2nim.pm +++ b/xCAT-server/lib/xcat/plugins/xcat2nim.pm @@ -16,6 +16,7 @@ use Sys::Hostname; use xCAT::NodeRange; use xCAT::Schema; use xCAT::Utils; +use xCAT::NetworkUtils; use xCAT::DBobjUtils; use Data::Dumper; use Getopt::Long; @@ -1498,7 +1499,7 @@ sub mkNIMnetwork # if the ip address is in the subnet # the right interface if ( xCAT::Utils->ishostinsubnet($myIP, $nethash{$node}{mask}, $nethash{$node}{net} )) { - $adapterhostname = xCAT::Utils->gethostname($myIP); + $adapterhostname = xCAT::NetworkUtils->gethostname($myIP); last; } }