mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-28 01:43:46 +00:00
Ne renvoie une ipv6 que si elle est activée
This commit is contained in:
parent
4039a9125b
commit
1d05ad03bc
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