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
559 B
JSON
24 lines
559 B
JSON
{
|
|
"gnpy-spectrum:spectrum": [
|
|
{
|
|
"f_min": "191400000000000.0",
|
|
"f_max": "193100000000000.0",
|
|
"baud_rate": "32000000000.0",
|
|
"slot_width": "50000000000.0",
|
|
"delta_pdb": "0.0",
|
|
"roll_off": "0.15",
|
|
"tx_osnr": "40.0",
|
|
"label": "mode_1"
|
|
},
|
|
{
|
|
"f_min": "193162500000000.0",
|
|
"f_max": "195000000000000.0",
|
|
"baud_rate": "64000000000.0",
|
|
"slot_width": "75000000000.0",
|
|
"roll_off": "0.15",
|
|
"tx_osnr": "40.0",
|
|
"tx_power_dbm": "-10.0",
|
|
"label": "mode_2"
|
|
}
|
|
]
|
|
} |