mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 19:33:11 +00:00
Ne renvoie une ipv6 que si elle est activée
This commit is contained in:
parent
d3b965a2e1
commit
810caa63d3
1 changed files with 3 additions and 1 deletions
|
@ -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"""
|
||||
|
|
Loading…
Reference in a new issue