FSP/BPA redundancy: do_makedhcp should check if the node itself is an IP first.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8823 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
66117158c2
commit
19218acbc8
@ -2487,11 +2487,15 @@ sub do_makedhcp {
|
||||
# Check if IP and mac are both
|
||||
# existing for this node
|
||||
#####################################
|
||||
my ($hostsent) = $db{hosts}->getNodeAttribs( $name, [qw(ip)] );
|
||||
if ( !$hostsent or !$hostsent->{ip} ) {
|
||||
$string = "Cannot find IP address for node $name during makedhcp, skip";
|
||||
send_msg( $request, 0, $string );
|
||||
next;
|
||||
my $ifip = xCAT::Utils->isIpaddr($name);
|
||||
unless( $ifip )
|
||||
{
|
||||
my ($hostsent) = $db{hosts}->getNodeAttribs( $name, [qw(ip)] );
|
||||
if ( !$hostsent or !$hostsent->{ip} ) {
|
||||
$string = "Cannot find IP address for node $name during makedhcp, skip";
|
||||
send_msg( $request, 0, $string );
|
||||
next;
|
||||
}
|
||||
}
|
||||
|
||||
my ($macent) = $db{mac}->getNodeAttribs( $name, [qw(mac)] );
|
||||
|
Loading…
x
Reference in New Issue
Block a user