mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-23 23:43:47 +00:00
Regen le dns quand modification de cname
This commit is contained in:
parent
50c9b1c834
commit
4078c1f55a
1 changed files with 8 additions and 3 deletions
|
@ -353,7 +353,6 @@ def machine_post_save(sender, **kwargs):
|
|||
user = kwargs['instance'].user
|
||||
user.ldap_sync(base=False, access_refresh=False, mac_refresh=True)
|
||||
regen('dhcp')
|
||||
regen('dns')
|
||||
regen('mac_ip_list')
|
||||
|
||||
@receiver(post_delete, sender=Machine)
|
||||
|
@ -361,7 +360,6 @@ def machine_post_delete(sender, **kwargs):
|
|||
machine = kwargs['instance']
|
||||
user = machine.user
|
||||
user.ldap_sync(base=False, access_refresh=False, mac_refresh=True)
|
||||
regen('dns')
|
||||
regen('dhcp')
|
||||
regen('mac_ip_list')
|
||||
|
||||
|
@ -371,7 +369,6 @@ def interface_post_save(sender, **kwargs):
|
|||
user = interface.machine.user
|
||||
user.ldap_sync(base=False, access_refresh=False, mac_refresh=True)
|
||||
regen('dhcp')
|
||||
regen('dns')
|
||||
regen('mac_ip_list')
|
||||
|
||||
@receiver(post_delete, sender=Interface)
|
||||
|
@ -390,3 +387,11 @@ def machine_post_save(sender, **kwargs):
|
|||
machinetype = kwargs['instance']
|
||||
for interface in machinetype.all_interfaces():
|
||||
interface.update_type()
|
||||
|
||||
@receiver(post_save, sender=Domain)
|
||||
def domain_post_save(sender, **kwargs):
|
||||
regen('dns')
|
||||
|
||||
@receiver(post_save, sender=Domain)
|
||||
def domain_post_save(sender, **kwargs):
|
||||
regen('dns')
|
||||
|
|
Loading…
Reference in a new issue