Part code check for class ready feature

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5138 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2010-02-04 08:12:33 +00:00
parent 1c38bfa4e4
commit d8e7b73f26
2 changed files with 465 additions and 649 deletions

View File

@ -203,36 +203,10 @@ sub addnode
$hname = $node;
} #Default to hostname equal to nodename
unless ($mac) { next; } #Skip corrupt format
my $inetn;
$inetn = "";
if ($hname eq '*NOIP*')
{
$inetn = "DENIED";
$hname = $node . "-noip" . $mac;
$hname =~ s/://g;
}
else
{
$inetn = inet_aton($hname);
}
unless ($inetn)
{
syslog(
"local1|err",
"xCAT DHCP plugin unable to resolve IP for $hname (for $node)"
);
return;
}
my $ip;
$ip = "";
if ($inetn eq "DENIED")
{
my $ip = xCAT::Utils::getNodeIPaddress($hname);
if ( !defined($ip) ) {
$ip = "DENIED";
}
else
{
$ip = inet_ntoa(inet_aton($hname));
}
if ($guess_next_server and $ip ne "DENIED")
{
$nxtsrv = xCAT::Utils->my_ip_facing($hname);

File diff suppressed because it is too large Load Diff