From a53f69c482facde4c9266c07c95a32744082bdbd Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Wed, 31 Jan 2018 04:16:26 +0100 Subject: [PATCH] Fix fonction de sync ipv6 --- machines/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/machines/models.py b/machines/models.py index afb072a7..16d387a9 100644 --- a/machines/models.py +++ b/machines/models.py @@ -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