diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm index f4a9c491e..0cb742638 100644 --- a/xCAT-server/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server/lib/xcat/plugins/lsslp.pm @@ -890,6 +890,7 @@ sub prt_result my $nets = xCAT::Utils::my_nets(); for my $v (keys %$values) { + # remove the process of finding ping-able ip to save time. #if ( $v =~ /ip-address=([^\)]+)/g) if ($v =~ /.*URL: .*\:\/\/(\d+\.\d+\.\d+\.\d+)/) { @@ -1367,7 +1368,14 @@ sub gethost_from_url_or_old { my %iphash = (); my %typehash = (); - + ####################################### + # Extract IP from URL + ####################################### + my $nets = xCAT::Utils::my_nets(); + my $ip = getip_from_iplist( $ip, $nets, $opt{i}); + if ( !defined( $ip )) { + return undef; + } # get the information of existed nodes to do the migration if ( !defined(%::OLD_DATA_CACHE))