
Ignore-this: 34136a50268b5fb92cb0231e125bdb5e darcs-hash:20111126225822-ddb99-0048f1cf2b0640600e7d6ae0b3abcf9768900b1a.gz
46 lines
1.7 KiB
Python
Executable file
46 lines
1.7 KiB
Python
Executable file
#! /usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
""" Definit les transpondeurs a associer a chacune des cartes """
|
|
|
|
#NE PAS OUBLIER DE MODIFIER LE cartedesactivees.local et lancer bcfg2 apres
|
|
from sat_base_ng import *
|
|
from socket import gethostname
|
|
|
|
host = gethostname()
|
|
|
|
transpondeurs = { 'canard' : [ SAT_10773h(0),
|
|
SAT_10714h(2) ,
|
|
#Hotbird_12597(3) ,
|
|
#Hotbird_11604(4) ,
|
|
],
|
|
'lapin' : [ TNT_R1_586000(0),
|
|
TNT_R2_506000(1),
|
|
TNT_R3_482000(2),
|
|
TNT_R4_546000(3),
|
|
TNT_R5_530000(4),
|
|
TNT_R6_562000(5),
|
|
],
|
|
'poulet' : [ TNT_R6_562000(1) ], # La 0 est la carte sat + decodeur #serveur de test
|
|
'dindon' : [ TNT_R1_586000(0) ,
|
|
TNT_R6_562000(1) ,
|
|
],
|
|
'oie' : [ #SAT_10773h(0),
|
|
SAT_11344h(0),
|
|
#SAT_11895v(1),
|
|
#Hotbird_12111(1) ,
|
|
#Hotbird_11137(2) ,
|
|
#SAT_11343v(3) ,
|
|
]
|
|
}
|
|
|
|
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)
|