diff --git a/gestion/gen_confs/switchs.py b/gestion/gen_confs/switchs.py index 64fcc926..fe75d27a 100755 --- a/gestion/gen_confs/switchs.py +++ b/gestion/gen_confs/switchs.py @@ -67,6 +67,9 @@ class switch(gen_config) : # Action sur le switch prise = chbre_prises[bat][chbre[1:].lower()] sw=hp(bat,int(prise[0])) + if prise[-1]=='-' : + prise=prise[:-1] + sw.set_prise(int(prise[1:4]),'speed-duplex auto-10') r = sw.set_prise(int(prise[1:4]),action) sw.close() if not r :