Commit 2b5d732c authored by Daniel STAN's avatar Daniel STAN

gen_confs/switchs: adh peut ne pas avoir de droits

parent 105c6d82
......@@ -103,7 +103,7 @@ class Port(object):
if any("cl" in nom for nom in self.chambres) or self.uplink or \
return ''
if any( adh['droits'] for adh in self.adherents()):
if any( adh.get('droits', None) for adh in self.adherents()):
return ''
return 'speed-duplex auto-10-100'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment