1 module org-openroadm-link {
2 namespace "http://org/openroadm/link";
5 import org-openroadm-common-types {
6 prefix org-openroadm-common-types;
7 revision-date 2017-09-29;
9 import org-openroadm-amplifier {
10 prefix org-openroadm-amplifier;
11 revision-date 2017-09-29;
19 "YANG definitions for an amplifier in Network Model
22 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2017,
23 AT&T Intellectual Property. All other rights reserved.
25 Redistribution and use in source and binary forms, with or without modification,
26 are permitted provided that the following conditions are met:
28 * Redistributions of source code must retain the above copyright notice, this
29 list of conditions and the following disclaimer.
30 * Redistributions in binary form must reproduce the above copyright notice,
31 this list of conditions and the following disclaimer in the documentation and/or
32 other materials provided with the distribution.
33 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
34 contributors may be used to endorse or promote products derived from this software
35 without specific prior written permission.
37 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
38 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
39 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
40 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
41 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
42 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
43 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
44 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
45 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
46 POSSIBILITY OF SUCH DAMAGE.";
54 "Version 2.0.1 - added revision-date to imports";
61 grouping OMS-attributes {
67 grouping span-attributes {
75 "Flag to enable/disable automatic spanloss measurement";
78 type org-openroadm-common-types:ratio-dB;
80 "Baseline ROADM span loss measured and accepted during
83 leaf spanloss-current {
84 type org-openroadm-common-types:ratio-dB;
86 "Current ROADM span loss measured and accepted during
89 leaf engineered-spanloss {
90 type org-openroadm-common-types:ratio-dB;
92 "ROADM span loss provided by an external system";
94 list link-concatenation {
99 "unique identifier for SRLG";
126 "TRUEWAVE Reduced Slope";
141 "Ultra Low Loss (ULL)";
148 "fiber length in meters";
151 type org-openroadm-common-types:fiber-pmd;
158 grouping amplified-link-attributes {
159 list amplified-link {
161 "defines the spans and the amplifier blocks of the amplified lines";
162 key "section-elt-number";
163 leaf section-elt-number {
166 "Id of the section element (whether it's a Span or an Amp)";
168 container section-element {
169 choice section-element {
172 uses org-openroadm-amplifier:amplifier-node-attributes;
174 type org-openroadm-common-types:node-id-type;
177 "Node id corresponding to the amplifier ";
179 leaf administrative-state {
180 type org-openroadm-common-types:state;
182 "according to RFC3630 definition";
188 uses link:span-attributes;
189 leaf administrative-state {
190 type org-openroadm-common-types:state;
192 "according to RFC3630 definition";