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:
parent
1c38bfa4e4
commit
d8e7b73f26
@ -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
Loading…
Reference in New Issue
Block a user