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:
EstherLerouzic
2024-02-21 20:43:54 +01:00
parent dcde64a8db
commit 4a071c53d7
11 changed files with 58 additions and 34 deletions

View File

@@ -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