From 51dce9903320d04deee7faad06613a2d3a6275db Mon Sep 17 00:00:00 2001 From: pauget Date: Fri, 10 Sep 2004 22:56:44 +0200 Subject: [PATCH] Les prises en 10Mb. darcs-hash:20040910205644-41617-7f34db9dcce072ba2d774c7625dbab0d23832401.gz --- gestion/gen_confs/switchs.py | 3 +++ 1 file changed, 3 insertions(+) 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 :