mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2025-11-01 18:47:48 +00:00
feat: transform roadm-paths into list indexed with frequency band
to be conformed with ietf + to prepare for next multiband case Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com> Change-Id: If71857ef7dff9eaaa4c16e3837d3500bcef2fa72
This commit is contained in:
@@ -134,7 +134,7 @@ class RoadmParams(Parameters):
|
||||
for path_impairment in path_impairments_list:
|
||||
index = path_impairment['roadm-path-impairments-id']
|
||||
path_type = next(key for key in path_impairment if key in authorized_path_types.keys())
|
||||
impairment_dict = dict({'path-type': authorized_path_types[path_type]}, **path_impairment[path_type])
|
||||
impairment_dict = dict({'path-type': authorized_path_types[path_type]}, **path_impairment[path_type][0])
|
||||
roadm_path_impairments[index] = RoadmImpairment(impairment_dict)
|
||||
return roadm_path_impairments
|
||||
|
||||
|
||||
Reference in New Issue
Block a user