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:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user