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

Failed to run dhcpd if tftpserver defined as <xcatmaster> in the network (#3223)

table
This commit is contained in:
cxhong 2017-06-12 09:08:53 -04:00 committed by yangsong
parent cd1ad380d0
commit 56500ea6bf

View File

@ -2457,10 +2457,11 @@ sub addnet
{
$tftp = $ent->{tftpserver};
}
else
{ #presume myself to be it, dhcp no longer does this for us
if (!$tftp || ($tftp eq '<xcatmaster>'))
{
$tftp = $myip;
}
if ($ent and $ent->{gateway})
{
$gateway = $ent->{gateway};