gen_confs/switchs: adh peut ne pas avoir de droits

This commit is contained in:
Daniel STAN 2014-09-13 16:26:45 +02:00
parent 105c6d82a2
commit 2b5d732c52

View file

@ -103,7 +103,7 @@ class Port(object):
if any("cl" in nom for nom in self.chambres) or self.uplink or \
self.servers:
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'