Classe BorneWifi.

darcs-hash:20060302161125-68412-22a95570d131e655f5570a08a92a3135604ba32e.gz
This commit is contained in:
glondu 2006-03-02 17:11:25 +01:00
parent be3d9b49b0
commit 962e284d11
4 changed files with 8 additions and 9 deletions

View file

@ -18,7 +18,7 @@ import string, sys, os, commands, smtplib
sys.path.append('/usr/scripts/gestion')
from hptools import hpswitch, sw_chbre
from ldap_crans import crans_ldap
from ldap_crans import crans_ldap, BorneWifi
from annuaires import chbre_prises, uplink_prises, reverse, bat_manuels, all_switchs
from random import shuffle
from gen_confs import *
@ -307,7 +307,7 @@ exit
adm=0
autres=0
for m in crans_prises["%s%s" % (bat.upper(), annu_prise)] :
if m.canal() : wifi+=1
if isinstance(m, BorneWifi): wifi += 1
elif m.Nom().find('.adm.crans.org')!=-1 : adm+=1
else : autres+=1
if autres==0 and adm==0 :