root 15 years ago committed by Самоукин Алексей
commit 772cd98b28

@ -19319,7 +19319,9 @@ eth0, eth1, ... etc."%net)
if not self.isCorrectNetRange(net, ranges, dhcpObj):
self.printERROR(_("range %s incorrectly")%",".join(ranges))
return False
# Флаг создания DNS зона
if not dhcpObj.createNet(network, router, domainNames, dnsIP, ranges):
return False
# Флаг создания DNS зоны
flagCreateDNSZone = False
# Добавление зоны в DNS
if self.isServiceSetup("dns") and domainNames and dnsIP:
@ -19330,11 +19332,6 @@ eth0, eth1, ... etc."%net)
# Создание зоны domainNames[0]
if not self.createDNSZone(domainNames, dnsIPs, ranges, net):
return False
if not dhcpObj.createNet(network, router, domainNames, dnsIP, ranges):
# Удаляем сеть если ошибка и сеть была ранее создана
if flagCreateDNSZone:
self.servDnsObj.delZoneDnsServer({"n":domainNames[0]})
return False
if not self.restartDhcp():
# Удаляем сеть если ошибка и сеть была ранее создана
if flagCreateDNSZone:

Loading…
Cancel
Save