mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 12:20:40 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user