support missing trx_mode in request instead of null value
@@ -462,7 +462,7 @@ def requests_from_json(json_data, equipment):
params['bidir'] = req['bidirectional']
params['destination'] = req['destination']
params['trx_type'] = req['path-constraints']['te-bandwidth']['trx_type']
- params['trx_mode'] = req['path-constraints']['te-bandwidth']['trx_mode']
+ params['trx_mode'] = req['path-constraints']['te-bandwidth'].get('trx_mode', None)
params['format'] = params['trx_mode']
params['spacing'] = req['path-constraints']['te-bandwidth']['spacing']
try:
