1 module gnpy-network-topology {
3 namespace "gnpy:gnpy-network-topology";
7 "Telecom Infra Project OOPT PSE Working Group";
9 "WG Web: <https://github.com/Telecominfraproject/oopt-gnpy>
10 contact: <mailto:ahmed.triki@orange.com>
11 contact: <mailto:esther.lerouzic@orange.com>
14 "YANG model for gnpy network input -
15 The license used for all the yang files of GNPy is BSD 3-Clause License
19 Copyright (c) 2018, Telecom Infra Project
22 Redistribution and use in source and binary forms, with or without
23 modification, are permitted provided that the following conditions are met:
25 * Redistributions of source code must retain the above copyright notice, this
26 list of conditions and the following disclaimer.
28 * Redistributions in binary form must reproduce the above copyright notice,
29 this list of conditions and the following disclaimer in the documentation
30 and/or other materials provided with the distribution.
32 * Neither the name of the copyright holder nor the names of its
33 contributors may be used to endorse or promote products derived from
34 this software without specific prior written permission.
36 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
37 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
38 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
39 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
40 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
41 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
42 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
43 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
44 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
45 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
49 "draft for GNPy4TPCE preversion - non official version relevant for v2.4 GNPy file format";
51 "YANG model for api input for path computation with gnpy";
56 "draft for experimental/2020-candi";
58 "YANG model for network input for path computation with gnpy";
63 "first draft for GNPy4TPCE preversion - non official version relevant for v1.2 GNPy file format";
65 "YANG model for api input for path computation with gnpy";
68 identity type-element {
70 "Base identity for element type";
73 identity Transceiver {
76 " Transceiver element";
82 "Fiber element (unidirectional)";
100 "Fused element ; non amplified connection between two fiber spans ;
101 can be used to model optical distribution frame, or losses due to
102 connectors or fused in a span";
105 identity length-unit {
134 grouping location-attributes {
155 grouping fiber-params {
170 description "Loss coefficient of the fiber span (dB/km)";
201 grouping edfa-params {
202 container operational {
204 "Operational values for the Edfa ";
212 "gain target of the amplifier (before VOA and after att_in)";
238 "per channel target output power delta with respect to power setting in SI";
243 grouping roadm-params {
244 leaf target_pch_out_db {
252 container restrictions {
253 leaf-list preamp_variety_list {
256 "List of authorized preamp type-variety";
258 leaf-list booster_variety_list {
261 "List of authorized booster type-variety";
266 grouping transceiver-params;
268 grouping fused-params{
275 "Concentrated loss of the fused element";
279 grouping element-type-choice {
280 choice element-type {
282 when "type = 'Edfa'";
287 choice fiberroadmfused {
289 when "type = 'Fiber'";
293 when "type = 'Roadm'";
297 when "type = 'Fused'";
304 when "type = 'Transceiver'";
327 uses location-attributes;
329 uses element-type-choice;
335 path "../../elements/uid";
340 path "../../elements/uid";