fix for the issue xcatd restart failed on SN if there is IPv6 network entry in xcat networks table.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@11919 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing
2012-03-21 02:52:26 +00:00
parent 4b10a30ae7
commit c9a613b258
+2
View File
@@ -2475,6 +2475,8 @@ sub my_ip_facing
$peer = shift;
}
return my_ip_facing_aix( $peer) if ( $^O eq 'aix');
my $peernumber = inet_aton($peer); #TODO: IPv6 support
unless ($peernumber) { return undef; }
my $noden = unpack("N", inet_aton($peer));
my @nets = split /\n/, `/sbin/ip addr`;
foreach (@nets)