gen_confs/switchs: adh peut ne pas avoir de droits
This commit is contained in:
parent
105c6d82a2
commit
2b5d732c52
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class Port(object):
|
||||||
if any("cl" in nom for nom in self.chambres) or self.uplink or \
|
if any("cl" in nom for nom in self.chambres) or self.uplink or \
|
||||||
self.servers:
|
self.servers:
|
||||||
return ''
|
return ''
|
||||||
if any( adh['droits'] for adh in self.adherents()):
|
if any( adh.get('droits', None) for adh in self.adherents()):
|
||||||
return ''
|
return ''
|
||||||
return 'speed-duplex auto-10-100'
|
return 'speed-duplex auto-10-100'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue