mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-26 14:42:25 +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()
|
machine_options, _created = preferences.models.OptionalMachine.objects.get_or_create()
|
||||||
if machine_options.ipv6_mode == 'SLAAC':
|
if machine_options.ipv6_mode == 'SLAAC':
|
||||||
return Ipv6List.objects.filter(interface=self)
|
return Ipv6List.objects.filter(interface=self)
|
||||||
else:
|
elif machine_options.ipv6_mode == 'DHCPV6':
|
||||||
return Ipv6List.objects.filter(interface=self, slaac_ip=False)
|
return Ipv6List.objects.filter(interface=self, slaac_ip=False)
|
||||||
|
else:
|
||||||
|
return None
|
||||||
|
|
||||||
def mac_bare(self):
|
def mac_bare(self):
|
||||||
""" Formatage de la mac type mac_bare"""
|
""" Formatage de la mac type mac_bare"""
|
||||||
|
|
Loading…
Reference in a new issue