C'est plus logique comme a.
darcs-hash:20041012165323-72cb0-1503fcdd5ceebc429c71cf8feadd4a09ed766821.gz
This commit is contained in:
parent
cc87925e13
commit
4c8a866501
1 changed files with 35 additions and 35 deletions
|
@ -2,12 +2,12 @@
|
|||
# -*- coding: iso-8859-15 -*-
|
||||
|
||||
# Liste des bâtiments avec switch manageables
|
||||
bat_switchs = [ 'a', 'b', 'c' , 'h' , 'i' , 'g' , 'j' ]
|
||||
bat_switchs = [ 'a', 'b', 'c' , 'g' , 'h' , 'i' , 'j' ]
|
||||
|
||||
aide={
|
||||
'g' : "appart du RDC=G901" ,
|
||||
'i' : "Chambres 209g + 309g + 105g + 403g + 110d + 312 + 007g +007d + locaux clubs sur prise 150.",
|
||||
'h' : "Chambres 7 et 8 et les locaux clubs sur la prise 046"
|
||||
'h' : "Chambres 7 et 8 et les locaux clubs sur la prise 046" ,
|
||||
'i' : "Chambres 209g + 309g + 105g + 403g + 110d + 312 + 007g +007d + locaux clubs sur prise 150."
|
||||
}
|
||||
|
||||
# Toute chambre ne commencant pas par 3 chiffres sera considéré comme un local club
|
||||
|
@ -318,10 +318,10 @@ chbre_prises={ 'a' :
|
|||
|
||||
'410d':'201' , '403d':'202' , '411g':'203' , '404g':'204' ,
|
||||
'411d':'205' , '404d':'206' , '412g':'207' , '405g':'208' ,
|
||||
'412d':'209' , '405d':'210' , '413g':'211' , 'xxx':'212' ,
|
||||
'413d':'213' , 'cl0':'214' , '401g':'215' , 'xxx':'216' ,
|
||||
'401d':'217' , 'xxx':'218' , '402g':'219' , 'xxx':'220' ,
|
||||
'402d':'221' , 'xxx':'222' , '403g':'223' } ,
|
||||
'412d':'209' , '405d':'210' , '413g':'211' , 'XXX':'212' ,
|
||||
'413d':'213' , 'cl0':'214' , '401g':'215' , 'XXX':'216' ,
|
||||
'401d':'217' , 'XXX':'218' , '402g':'219' , 'XXX':'220' ,
|
||||
'402d':'221' , 'XXX':'222' , '403g':'223' } ,
|
||||
|
||||
'm' :
|
||||
{'001':'001' , '002':'002' , '003':'003' , '004':'004' ,
|
||||
|
@ -447,37 +447,37 @@ chbre_prises={ 'a' :
|
|||
}
|
||||
|
||||
# Prises d'uplink, de machines du crans ou de bornes wifi
|
||||
uplink_prises={ 'i' :
|
||||
{ 49 : 'uplink->backbone' , 50 : 'uplink->bati-1',
|
||||
149 : 'uplink->bati' } ,
|
||||
uplink_prises={ 'a' :
|
||||
{ 49 : 'uplink->backbone', 50 : 'uplink->bata-1',
|
||||
149 : 'uplink->bata', 150 : 'uplink->bata-2',
|
||||
225 : 'uplink->bata-1', 226 : 'libre-service' },
|
||||
'b' :
|
||||
{ 49 : 'uplink->backbone', 50 : 'uplink->batb-1',
|
||||
149 : 'uplink->batb', 150 : 'uplink->batb-2',
|
||||
249 : 'uplink->batb-1', 250 : 'uplink->batb-3',
|
||||
349 : 'uplink->batb-2', 350 : 'uplink->2B' },
|
||||
'c' :
|
||||
{ 49 : 'uplink->backbone', 50 : 'uplink->batc-1',
|
||||
149 : 'uplink->batc', 150 : 'uplink->batc-2',
|
||||
225 : 'uplink->batc-1', 226 : 'locaux_clubs' },
|
||||
'g' :
|
||||
{ 49 : 'uplink->backbone', 50 : 'uplink->batg-1',
|
||||
149 : 'uplink->batg', 150 : 'uplink->batg-2',
|
||||
249 : 'uplink->batg-1', 250 : 'uplink->batg-4',
|
||||
449 : 'uplink->batg-2', 450 : 'uplink->batg-5',
|
||||
549 : 'uplink->batg-4', 550 : 'uplink->batg-6',
|
||||
649 : 'uplink->batg-5', 547 : 'wifi_lodur' },
|
||||
'h' :
|
||||
{ 49 : 'uplink->backbone' , 50 : 'uplink->bath-1',
|
||||
149 : 'uplink->bath' , 150 : 'pegase' } ,
|
||||
{ 49 : 'uplink->backbone', 50 : 'uplink->bath-1',
|
||||
149 : 'uplink->bath', 150 : 'pegase' },
|
||||
'i' :
|
||||
{ 49 : 'uplink->backbone', 50 : 'uplink->bati-1',
|
||||
149 : 'uplink->bati' } ,
|
||||
'j' :
|
||||
{ 49 : 'uplink->backbone', 50 : 'uplink->batj-1',
|
||||
149 : 'uplink->batj', 150 : 'uplink->batj-2',
|
||||
225 : 'uplink->batj-2', 226 : 'uplink->4J' ,
|
||||
224 : 'wifi_hlim' } ,
|
||||
'g' :
|
||||
{ 49 : 'uplink->backbone', 50 : 'uplink->batg-1' ,
|
||||
149 : 'uplink->batg' , 150 : 'uplink->batg-2' ,
|
||||
249 : 'uplink->batg-1' , 250 : 'uplink->batg-4' ,
|
||||
449 : 'uplink->batg-2' , 450 : 'uplink->batg-5' ,
|
||||
549 : 'uplink->batg-4' , 550 : 'uplink->batg-6' ,
|
||||
649 : 'uplink->batg-5' , 547 : 'wifi_lodur' } ,
|
||||
'a' :
|
||||
{ 49 : 'uplink->backbone', 50 : 'uplink->bata-1',
|
||||
149 : 'uplink->bata', 150 : 'uplink->bata-2',
|
||||
225 : 'uplink->bata-1', 226 : 'libre-service' },
|
||||
'b' :
|
||||
{ 49 : 'uplink->backbone', 50 : 'uplink->batb-1',
|
||||
149 : 'uplink->batb', 150 : 'uplink->batb-2',
|
||||
249 : 'uplink->batb-1', 250 : 'uplink->batb-3',
|
||||
349 : 'uplink->batb-2', 350 : 'uplink->2B' },
|
||||
'c' :
|
||||
{ 49 : 'uplink->backbone', 50 : 'uplink->batc-1',
|
||||
149 : 'uplink->batc' , 150 : 'uplink->batc-2',
|
||||
225 : 'uplink->batc-1', 226 : 'locaux_clubs' }
|
||||
225 : 'uplink->batj-2', 226 : 'uplink->4J',
|
||||
224 : 'wifi_hlim' }
|
||||
}
|
||||
|
||||
# Dictionnaire inverse
|
||||
|
@ -500,7 +500,7 @@ def all_switchs(bat=None):
|
|||
simplement batx"""
|
||||
if bat == None:
|
||||
bat = bat_switchs
|
||||
if type(bat) in [ tuple, list ] :
|
||||
if type(bat) not in [ tuple, list ] :
|
||||
bat = [bat]
|
||||
switchs = []
|
||||
for b in map(lambda x: x.lower(), bat):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue