Permet d'afficher les chaines sonfigures.
darcs-hash:20050911234612-41617-4bfe96f704f614fd8b3921416354595d90591558.gz
This commit is contained in:
parent
4ae890762b
commit
cb1670c73e
1 changed files with 27 additions and 22 deletions
|
@ -8,26 +8,31 @@ from socket import gethostname
|
|||
|
||||
host = gethostname()
|
||||
|
||||
conf = []
|
||||
transpondeurs = { 'canard' : [ TNT_R4_498000(0) ,
|
||||
Hotbird_12476(1) ,
|
||||
Hotbird_10911(2) ,
|
||||
Hotbird_12597(3) ,
|
||||
Hotbird_12577(4) ],
|
||||
'lapin' : [ Hotbird_11727(0) ,
|
||||
Hotbird_11604(1) ,
|
||||
TNT_R1_586000(2) ,
|
||||
TNT_R6_562000(3) ,
|
||||
TNT_R2_474000(4) ,
|
||||
TNT_R3_522000(5) ],
|
||||
'oie' : [ Hotbird_12245(0) ,
|
||||
Hotbird_11137(1) ,
|
||||
Hotbird_10873(2) ,
|
||||
Hotbird_11304(3) ,
|
||||
Hotbird_11623(4) ]
|
||||
}
|
||||
|
||||
if host == 'canard' :
|
||||
conf = [ TNT_R4_498000(0) ,
|
||||
Hotbird_12476(1) ,
|
||||
Hotbird_10911(2) ,
|
||||
Hotbird_12597(3) ,
|
||||
Hotbird_12577(4)
|
||||
]
|
||||
if host == 'lapin' :
|
||||
conf = [ Hotbird_11727(0) ,
|
||||
Hotbird_11604(1) ,
|
||||
TNT_R1_586000(2) ,
|
||||
TNT_R6_562000(3) ,
|
||||
TNT_R2_474000(4) ,
|
||||
TNT_R3_522000(5) ]
|
||||
if host == 'oie' :
|
||||
conf = [ Hotbird_12245(0) ,
|
||||
Hotbird_11137(1) ,
|
||||
Hotbird_10873(2) ,
|
||||
Hotbird_11304(3) ,
|
||||
Hotbird_11623(4) ]
|
||||
conf = transpondeurs.get(host,[])
|
||||
|
||||
if __name__ == '__main__' :
|
||||
import sys
|
||||
if len(sys.argv) == 2 :
|
||||
conf = transpondeurs.get(sys.argv[1],[])
|
||||
for t in conf :
|
||||
print t
|
||||
for chaine in t.chaines.values() :
|
||||
print '\t%s' % chaine
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue