1 module org-openroadm-otn-odu-interfaces {
3 namespace "http://org/openroadm/otn-odu-interfaces";
4 prefix org-openroadm-otn-odu-interfaces;
6 import org-openroadm-device {
7 prefix org-openroadm-device;
8 revision-date 2017-02-06;
10 import org-openroadm-interfaces {
12 revision-date 2016-10-14;
14 import org-openroadm-maintenance-testsignal {
15 prefix org-openroadm-maint-testsignal;
16 revision-date 2016-10-14;
19 organization "Open ROADM MSA";
23 "YANG definitions for device facility otnodu interfaces.
25 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
26 AT&T Intellectual Property. All other rights reserved.
28 Redistribution and use in source and binary forms, with or without modification,
29 are permitted provided that the following conditions are met:
31 * Redistributions of source code must retain the above copyright notice, this
32 list of conditions and the following disclaimer.
33 * Redistributions in binary form must reproduce the above copyright notice,
34 this list of conditions and the following disclaimer in the documentation and/or
35 other materials provided with the distribution.
36 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
37 contributors may be used to endorse or promote products derived from this software
38 without specific prior written permission.
40 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
41 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
42 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
43 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
44 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
45 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
46 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
47 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
48 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
49 POSSIBILITY OF SUCH DAMAGE.
51 Also contains code components extracted from IETF Interfaces. These code components
52 are copyrighted and licensed as follows:
54 Copyright (c) 2016 IETF Trust and the persons identified as the document authors.
57 This document is subject to BCP 78 and the IETF Trust’s Legal Provisions Relating
58 to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of
59 publication of this document. Please review these documents carefully, as they
60 describe your rights and restrictions with respect to this document. Code Components
61 extracted from this document must include Simplified BSD License text as described in
62 Section 4.e of the Trust Legal Provisions and are provided without warranty as
63 described in the Simplified BSD License.";
70 identity odu-rate-identity {
72 "A unique rate identification of the ODUk.";
76 base odu-rate-identity;
78 "Identity for an ODU4";
82 base odu-rate-identity;
84 "Identity for an ODU3";
88 base odu-rate-identity;
90 "Identity for an ODU2";
94 base odu-rate-identity;
96 "Identity for an ODU2e";
100 base odu-rate-identity;
102 "Identity for an ODU1";
106 base odu-rate-identity;
108 "Identity for an ODU0";
112 base odu-rate-identity;
114 "Identity for an ODUflex";
117 identity odtu-type-identity {
119 "A unique identification for the MSI odtu type.";
122 identity ODTU4.ts-Allocated {
123 base odtu-type-identity;
125 "OPU4 MSI - ODTU4.ts, TS is occupied/allocated";
129 base odtu-type-identity;
135 base odtu-type-identity;
141 base odtu-type-identity;
147 base odtu-type-identity;
153 base odtu-type-identity;
159 base odtu-type-identity;
165 base odtu-type-identity;
171 base odtu-type-identity;
177 base odtu-type-identity;
183 base odtu-type-identity;
188 identity unallocated {
189 base odtu-type-identity;
191 "Unallocated MSI type";
198 "tributary slot (TS)";
202 base odtu-type-identity;
205 "ODTU type, part of the MSI (Multiplex Structure Identifier)";
210 "Tributray Port Number (0-based), part of the MSI";
212 leaf trib-port-payload {
215 "interface name being mapped to trib-port";
219 grouping odu-attributes {
224 base odu-rate-identity;
227 "rate identity of the ODU. 'identityref' is used
228 to allow to extend for future higher rates";
230 leaf monitoring-mode {
232 enum "not-terminated" {
234 "Not Terminated: no detection or generation.
235 Overhead is passed through the interface transparently in receive direction";
239 "Terminated: detection and generation enabled.
240 Overhead is erased (replaced with all zeros) in receive direction";
244 "Monitored: detection enabled.
245 Overhead is passed through the interface transparently in receive direction";
249 "Monitoring mode of the ODU Overhead";
251 leaf proactive-delay-measurement-enabled {
254 "enable/disable proactive Delay Measurement";
261 "Tandem Connection Management";
268 when "../monitoring-mode = 'terminated' or ../monitoring-mode = 'monitored'";
270 "Optical Channel Payload Unit (OPU)";
274 pattern "[0-9a-fA-F]*";
279 leaf rx-payload-type {
282 pattern "[0-9a-fA-F]*";
285 "Received Payload Type";
287 leaf exp-payload-type {
290 pattern "[0-9a-fA-F]*";
293 "Expected Payload Type";
295 leaf payload-interface {
298 "Expected Payload of OPU. It designates client interface name";
301 when "../payload-type = '20' or ../payload-type = '21'";
324 grouping tcm-attributes {
326 "Tandem Connection Monitoring (TCM) attributes";
334 leaf monitoring-mode {
336 enum "not-terminated" {
338 "Not Terminated: no detection or generation.
339 Overhead is passed through the interface transparently in receive direction
340 unless extension is set for erase";
344 "Terminated: detection and generation enabled.
345 Overhead is erased (replaced with all zeros) in receive direction, unless
346 extension is set to passthrough";
350 "Monitored: detection enabled.
351 Overhead is passed through the interface transparently in receive direction
352 unless extension is set for erase";
356 "Monitoring mode of the TCM layer";
358 leaf ltc-act-enabled {
361 "enable/disable alarm transfer on detection of Loss of Tandem Connection (LTC)";
363 leaf proactive-delay-measurement-enabled {
366 "enable/disable proactive Delay Measurement";
370 grouping odu-container {
372 presence "Attribute Nodes for Optical Data Unit (ODU)";
374 "Optical Channel Data Unit (ODU)";
375 uses odu-attributes {
376 refine "opu/rx-payload-type" {
383 uses org-openroadm-maint-testsignal:maint-testsignal;
387 augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface" {
388 when "org-openroadm-device:type = 'openROADM-if:otnOdu'";