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 "change fraction digits from 2 to 5 for loss_coef leaf";
51 "YANG model for api input for path computation with gnpy";
56 "draft for GNPy4TPCE preversion - non official version relevant for v2.4 GNPy file format";
58 "YANG model for api input for path computation with gnpy";
63 "draft for experimental/2020-candi";
65 "YANG model for network input for path computation with gnpy";
70 "first draft for GNPy4TPCE preversion - non official version relevant for v1.2 GNPy file format";
72 "YANG model for api input for path computation with gnpy";
75 identity type-element {
77 "Base identity for element type";
80 identity Transceiver {
83 " Transceiver element";
89 "Fiber element (unidirectional)";
107 "Fused element ; non amplified connection between two fiber spans ;
108 can be used to model optical distribution frame, or losses due to
109 connectors or fused in a span";
112 identity length-unit {
141 grouping location-attributes {
162 grouping fiber-params {
177 description "Loss coefficient of the fiber span (dB/km)";
208 grouping edfa-params {
209 container operational {
211 "Operational values for the Edfa ";
219 "gain target of the amplifier (before VOA and after att_in)";
245 "per channel target output power delta with respect to power setting in SI";
250 grouping roadm-params {
251 leaf target_pch_out_db {
259 container restrictions {
260 leaf-list preamp_variety_list {
263 "List of authorized preamp type-variety";
265 leaf-list booster_variety_list {
268 "List of authorized booster type-variety";
273 grouping transceiver-params;
275 grouping fused-params{
282 "Concentrated loss of the fused element";
286 grouping element-type-choice {
287 choice element-type {
289 when "type = 'Edfa'";
294 choice fiberroadmfused {
296 when "type = 'Fiber'";
300 when "type = 'Roadm'";
304 when "type = 'Fused'";
311 when "type = 'Transceiver'";
334 uses location-attributes;
336 uses element-type-choice;
342 path "../../elements/uid";
347 path "../../elements/uid";