Fix bug 2883802 lsslp print error when device have IPV6 addresses

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4437 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhanx 2009-10-22 09:55:42 +00:00
parent f324ae4432
commit cc77e78933

View File

@ -689,6 +689,7 @@ sub invoke_cmd {
if ( keys (%$unicast) ) {
foreach my $url ( keys %$unicast ) {
my ($service,$addr) = split "://", $url;
next if ($addr =~ /:/);#skip IPV6
####################################
# Strip off trailing ",lifetime"
@ -1254,6 +1255,7 @@ sub getip_from_iplist
for my $ip (@ips)
{
next if ( $ip =~ /:/); #skip IPV6 addresses
for my $net ( keys %$nets)
{
my ($n,$m) = split /\//,$net;