scripts/tv/genconf/sat_conf.py
Brice Dubost 1e6c5379c2 [tv/sat_conf.py] Nouveaux serveurs et nouvelle repartition des cartes
darcs-hash:20090619101847-c9953-5b0755c7e8823afa9bf64c004cc195e293c9d723.gz
2009-06-19 12:18:47 +02:00

39 lines
1.4 KiB
Python
Executable file

#! /usr/bin/env python
# -*- coding: utf-8 -*-
""" Defini les transpondeurs a associer a chacune des cartes """
from sat_base import *
from socket import gethostname
host = gethostname()
transpondeurs = { 'canard' : [ Hotbird_11034(0) ,
Hotbird_11240(1) ,
Hotbird_12597(2) ,
Hotbird_11604(3) ,
TNT_R1_586000(4) ],
'lapin' : [ Hotbird_12539(0) ,
Hotbird_11727(1) , #Cette carte capte bizarrement, a vérifier
TNT_R2_474000(2) ,
TNT_R3_522000(3) ],
'poulet' : [ TNT_R4_498000(1) ],
'dindon' : [ TNT_R5_538000(0) ],
'oie' : [ Hotbird_10853(0) ,
Hotbird_11642(1) ,
Hotbird_12111(2) ,
Hotbird_11137(3) ,
TNT_R6_562000(4) ,
TNT_R7_490000(5) ]
}
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, "sur la carte", t.card
for (sap_group, chaine) in t.chaines.values() :
print '\t%s\t: \t%s' % (sap_group,chaine)