2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 11:42:05 +00:00

updated dhcp.pm to put out a warning message when subnet/netmask for network in network table does not match network configured

This commit is contained in:
billwajda 2015-04-02 09:14:10 -04:00 committed by WangXiaoPeng
parent 3441bc337a
commit 05339e823e

View File

@ -2166,21 +2166,21 @@ sub addnet
while ($idx <= $#dhcpconf)
{
if ($dhcpconf[$idx] =~ /\} # $nic nic_end\n/)
{
last;
}
$idx++;
{
last;
}
$idx++;
}
unless ($dhcpconf[$idx] =~ /\} # $nic nic_end\n/)
{
$callback->(
{
error =>
["Could not add the subnet $net/$mask for nic $nic into $dhcpconffile."],
$callback->(
{
error =>
["Could not add the subnet $net/$mask for nic $nic into $dhcpconffile.\nPlease verify the xCAT database matches networks defined on this system."],
errorcode => [1]
}
);
return 1; #TODO: this is an error condition
}
);
return 1;
}
}