mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 11:53:12 +00:00
Fix fonction de sync ipv6
This commit is contained in:
parent
9f560b2141
commit
a53f69c482
1 changed files with 2 additions and 2 deletions
|
@ -1243,9 +1243,9 @@ class Interface(FieldPermissionModelMixin,models.Model):
|
|||
|
||||
def sync_ipv6(self):
|
||||
"""Cree et met à jour l'ensemble des ipv6 en fonction du mode choisi"""
|
||||
if machine_options.ipv6_mode == 'SLAAC':
|
||||
if preferences.models.OptionalMachine.get_cached_value('ipv6_mode') == 'SLAAC':
|
||||
self.sync_ipv6_slaac()
|
||||
elif machine_options.ipv6_mode == 'DHCPV6':
|
||||
elif preferences.models.OptionalMachine.get_cached_value('ipv6_mode') == 'DHCPV6':
|
||||
self.sync_ipv6_dhcpv6()
|
||||
else:
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue