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
38 lines
754 B
JSON
38 lines
754 B
JSON
{
|
|
"Transceiver": [
|
|
{
|
|
"type_variety": "ZR400G",
|
|
"frequency": {
|
|
"min": 191.35e12,
|
|
"max": 196.1e12
|
|
},
|
|
"mode": [
|
|
{
|
|
"format": "400G",
|
|
"baud_rate": 60e9,
|
|
"OSNR": 24,
|
|
"bit_rate": 400e9,
|
|
"roll_off": 0.2,
|
|
"tx_osnr": 38,
|
|
"min_spacing": 75e9,
|
|
"cost": 1
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Edfa": [
|
|
{
|
|
"type_variety": "user_defined_default_amplifier",
|
|
"type_def": "variable_gain",
|
|
"gain_flatmax": 25,
|
|
"gain_min": 15,
|
|
"p_max": 21,
|
|
"nf_min": 6,
|
|
"nf_max": 10,
|
|
"default_config_from_json": "user_edfa_config.json",
|
|
"out_voa_auto": false,
|
|
"allowed_for_design": false
|
|
}
|
|
]
|
|
}
|