Commit 1d05ad03 authored by Gabriel Detraz's avatar Gabriel Detraz Committed by Gabriel Detraz
Browse files

Ne renvoie une ipv6 que si elle est activée

parent 4039a912
......@@ -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)
elif machine_options.ipv6_mode == 'DHCPV6':
return Ipv6List.objects.filter(interface=self, slaac_ip=False)
return None
def mac_bare(self):
""" Formatage de la mac type mac_bare"""
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment