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
This commit is contained in:
ligc 2010-05-06 07:38:46 +00:00
parent 70447f45a1
commit fd3417df9d

View File

@ -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