diff --git a/xCAT-server/share/xcat/ib/scripts/annotatelog b/xCAT-server/share/xcat/ib/scripts/annotatelog index 294de6367..814215598 100644 --- a/xCAT-server/share/xcat/ib/scripts/annotatelog +++ b/xCAT-server/share/xcat/ib/scripts/annotatelog @@ -190,7 +190,7 @@ sub getArgs() foreach my $node (@::NodeList) { #If there are IP addresses in NodeList, convert IP to hostname first - if (isIpaddr($node)) + if (isIpaddr($node)) # why? for xCAT, nodename can not be ip address... { my ($hostname, $ip) = getHost($node); $node = $hostname; @@ -260,6 +260,10 @@ sub isIpaddr { my ($class, $addr) = @_; + if ($addr =~ /:/) { #ipv6 + return 1; + } + #print "addr=$addr\n"; if ($addr !~ /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/) {