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-12-15;
9 import org-openroadm-amplifier {
10 prefix org-openroadm-amplifier;
11 revision-date 2017-12-15;
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.";
58 "Version 2.0.1 - added revision-date to imports";
65 grouping OMS-attributes {
71 grouping span-attributes {
79 "Flag to enable/disable automatic spanloss measurement";
82 type org-openroadm-common-types:ratio-dB;
84 "Baseline ROADM span loss measured and accepted during
85 degree turn-up. May be re-set to current value after a fiber repair or change.";
87 leaf spanloss-current {
88 type org-openroadm-common-types:ratio-dB;
90 "Current ROADM span loss measured and accepted during
91 degree turn-up. Updated periodically if auto-spanloss is enabled.";
93 leaf engineered-spanloss {
94 type org-openroadm-common-types:ratio-dB;
96 "ROADM span loss provided by an external system";
98 list link-concatenation {
103 "unique identifier for SRLG";
130 "TRUEWAVE Reduced Slope";
145 "Ultra Low Loss (ULL)";
152 "fiber length in meters";
155 type org-openroadm-common-types:fiber-pmd;
162 grouping amplified-link-attributes {
163 list amplified-link {
164 key "section-elt-number";
166 "defines the spans and the amplifier blocks of the amplified lines";
167 leaf section-elt-number {
170 "Id of the section element (whether it's a Span or an Amp)";
172 container section-element {
173 choice section-element {
176 uses org-openroadm-amplifier:amplifier-node-attributes;
178 type org-openroadm-common-types:node-id-type;
181 "Node id corresponding to the amplifier ";
183 leaf administrative-state {
184 type org-openroadm-common-types:state;
190 uses link:span-attributes;
191 leaf administrative-state {
192 type org-openroadm-common-types:state;