mirror of
https://github.com/Telecominfraproject/oopt-gnpy.git
synced 2026-01-27 10:21:48 +00:00
This commit introduces new functions for converting between YANG formatted files and legacy formats. The conversion processes adhere to RFC7951 for encoding YANG data. Key changes include: - Conversion of float and empty type representations. - Transformation of Span and SI lists xx_power_range into dictionaries. - Addition of necessary namespaces. - use of oopt-gnpy-libyang to enforce compliancy to yang models These utilities enable full compatibility with GNPy. Co-authored-by: Renato Ambrosone <renato.ambrosone@polito.it> Signed-off-by: EstherLerouzic <esther.lerouzic@orange.com> Change-Id: Ia004113bca2b0631d1648564e5ccb60504fe80f8
24 lines
438 B
JSON
24 lines
438 B
JSON
{
|
|
"spectrum": [
|
|
{
|
|
"f_min": 191.4e12,
|
|
"f_max": 193.1e12,
|
|
"baud_rate": 32e9,
|
|
"slot_width": 50e9,
|
|
"delta_pdb": 0,
|
|
"roll_off": 0.15,
|
|
"tx_osnr": 40,
|
|
"label": "mode_1"
|
|
},
|
|
{
|
|
"f_min": 193.1625e12,
|
|
"f_max": 195e12,
|
|
"baud_rate": 64e9,
|
|
"slot_width": 75e9,
|
|
"roll_off": 0.15,
|
|
"tx_osnr": 40,
|
|
"tx_power_dbm": -10,
|
|
"label": "mode_2"
|
|
}
|
|
]
|
|
} |