From fd3417df9dc089ce4ca58229054e696cc10936fb Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 6 May 2010 07:38:46 +0000 Subject: [PATCH] replace inet_ntoa with IPv4/IPv6 compatible subroutine git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5981 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/xcat2nim.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/xcat2nim.pm b/xCAT-server/lib/xcat/plugins/xcat2nim.pm index 17f6fc661..c52be2486 100644 --- a/xCAT-server/lib/xcat/plugins/xcat2nim.pm +++ b/xCAT-server/lib/xcat/plugins/xcat2nim.pm @@ -1548,7 +1548,7 @@ sub mkNIMnetwork } # get the ip of the nim primary interface - my $gwIP = inet_ntoa(inet_aton($adapterhost)); + my $gwIP = xCAT::Utils->getipaddr($adapterhost); chomp $gwIP; # create static routes between the networks