restore power management in transmission main

Signed-off-by: Jean-Luc Auge <jeanluc.auge@orange.com>
This commit is contained in:
Jean-Luc Auge
2018-07-13 17:35:39 +02:00
parent 4a756bf2a9
commit c6432e2c28
6 changed files with 88 additions and 52 deletions

View File

@@ -60,6 +60,7 @@ def requests_from_json(json_data,equipment):
params['trx_type'] = req['path-constraints']['te-bandwidth']['trx_type']
params['trx_mode'] = req['path-constraints']['te-bandwidth']['trx_mode']
params['frequency'] = tsp_lib[params['trx_type']].frequency
#TODO Esther
try:
extra_params = next(m
for m in tsp_lib[params['trx_type']].mode if m['format'] == params['trx_mode'])