Il peut y avoir une borne wifi sur une prise sans adhrent.

darcs-hash:20041210171737-41617-7206e435832d8483d92564e0503037cf9936867c.gz
This commit is contained in:
pauget 2004-12-10 18:17:37 +01:00
parent caea06f8fc
commit f18d8b29ad

View file

@ -298,8 +298,10 @@ exit
act = 1
break
if not act :
prise_params['etat']='\n disable'
if not act :
# Peut être une borne wifi ?
if not self.db.search('prise=%s%s' % (bat.upper(), annu_prise))['machine'] :
prise_params['etat']='\n disable'
params['INTERFACES_CONF'] += self.interface_template % prise_params
@ -368,7 +370,7 @@ if __name__ == '__main__' :
if sys.argv[1] == 'all' :
switchs = ( 'batg-6', 'batg-5', 'batg-4', 'batg-2', 'batg-1', 'batg' ,
'batj-2', 'batj-1', 'batj' ,
'bati-1', 'bati' ,
'bati-2', 'bati-1', 'bati' ,
'bath-1', 'bath' ,
'batc-2', 'batc-1', 'batc' ,
'batb-3', 'batb-2', 'batb-1', 'batb' )