Modify the process of find node mac address.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9135 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2011-03-23 07:56:21 +00:00
parent 26fb72c72b
commit 92246870ea

View File

@ -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))