From 810caa63d32ee28c00e1ae4cab3ba526a7f72afe Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Tue, 30 Jan 2018 06:36:22 +0000 Subject: [PATCH] =?UTF-8?q?Ne=20renvoie=20une=20ipv6=20que=20si=20elle=20e?= =?UTF-8?q?st=20activ=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- machines/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/machines/models.py b/machines/models.py index 542a6043..b0e0086d 100644 --- a/machines/models.py +++ b/machines/models.py @@ -1258,8 +1258,10 @@ class Interface(FieldPermissionModelMixin,models.Model): machine_options, _created = preferences.models.OptionalMachine.objects.get_or_create() if machine_options.ipv6_mode == 'SLAAC': return Ipv6List.objects.filter(interface=self) - else: + elif machine_options.ipv6_mode == 'DHCPV6': return Ipv6List.objects.filter(interface=self, slaac_ip=False) + else: + return None def mac_bare(self): """ Formatage de la mac type mac_bare"""