mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-25 04:43:10 +00:00
Retourne au moins l'interface principale du switch
This commit is contained in:
parent
d51f1e126d
commit
47e67c3a40
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ class Switch(AclMixin, Machine):
|
||||||
It must the the management interface for that device"""
|
It must the the management interface for that device"""
|
||||||
switch_iptype = OptionalTopologie.get_cached_value('switchs_ip_type')
|
switch_iptype = OptionalTopologie.get_cached_value('switchs_ip_type')
|
||||||
if switch_iptype:
|
if switch_iptype:
|
||||||
return self.interface_set.filter(machine_type__ip_type=switch_iptype).first()
|
return self.interface_set.filter(machine_type__ip_type=switch_iptype).first() or self.interface_set.first()
|
||||||
return self.interface_set.first()
|
return self.interface_set.first()
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
|
|
Loading…
Reference in a new issue