1 module org-openroadm-otn-odu-interfaces {
2 namespace "http://org/openroadm/otn-odu-interfaces";
3 prefix org-openroadm-otn-odu-interfaces;
5 import org-openroadm-device {
6 prefix org-openroadm-device;
7 revision-date 2017-02-06;
9 import org-openroadm-interfaces {
11 revision-date 2016-10-14;
13 import org-openroadm-maintenance-testsignal {
14 prefix org-openroadm-maint-testsignal;
15 revision-date 2016-10-14;
18 organization "Open ROADM MSA";
22 "YANG definitions for device facility otnodu interfaces.
24 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
25 AT&T Intellectual Property. All other rights reserved.
27 Redistribution and use in source and binary forms, with or without modification,
28 are permitted provided that the following conditions are met:
30 * Redistributions of source code must retain the above copyright notice, this
31 list of conditions and the following disclaimer.
32 * Redistributions in binary form must reproduce the above copyright notice,
33 this list of conditions and the following disclaimer in the documentation and/or
34 other materials provided with the distribution.
35 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
36 contributors may be used to endorse or promote products derived from this software
37 without specific prior written permission.
39 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
40 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
41 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
42 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
43 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
44 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
45 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
46 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
47 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
48 POSSIBILITY OF SUCH DAMAGE.
50 Also contains code components extracted from IETF Interfaces. These code components
51 are copyrighted and licensed as follows:
53 Copyright (c) 2016 IETF Trust and the persons identified as the document authors.
56 This document is subject to BCP 78 and the IETF Trust’s Legal Provisions Relating
57 to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of
58 publication of this document. Please review these documents carefully, as they
59 describe your rights and restrictions with respect to this document. Code Components
60 extracted from this document must include Simplified BSD License text as described in
61 Section 4.e of the Trust Legal Provisions and are provided without warranty as
62 described in the Simplified BSD License.";
69 identity odu-rate-identity {
71 "A unique rate identification of the ODUk.";
75 base odu-rate-identity;
77 "Identity for an ODU4";
81 base odu-rate-identity;
83 "Identity for an ODU3";
87 base odu-rate-identity;
89 "Identity for an ODU2";
93 base odu-rate-identity;
95 "Identity for an ODU2e";
99 base odu-rate-identity;
101 "Identity for an ODU1";
105 base odu-rate-identity;
107 "Identity for an ODU0";
111 base odu-rate-identity;
113 "Identity for an ODUflex";
116 identity odtu-type-identity {
118 "A unique identification for the MSI odtu type.";
121 identity ODTU4.ts-Allocated {
122 base odtu-type-identity;
124 "OPU4 MSI - ODTU4.ts, TS is occupied/allocated";
128 base odtu-type-identity;
134 base odtu-type-identity;
140 base odtu-type-identity;
146 base odtu-type-identity;
152 base odtu-type-identity;
158 base odtu-type-identity;
164 base odtu-type-identity;
170 base odtu-type-identity;
176 base odtu-type-identity;
182 base odtu-type-identity;
187 identity unallocated {
188 base odtu-type-identity;
190 "Unallocated MSI type";
197 "tributary slot (TS)";
201 base odtu-type-identity;
204 "ODTU type, part of the MSI (Multiplex Structure Identifier)";
209 "Tributray Port Number (0-based), part of the MSI";
211 leaf trib-port-payload {
214 "interface name being mapped to trib-port";
218 grouping odu-attributes {
223 base odu-rate-identity;
226 "rate identity of the ODU. 'identityref' is used
227 to allow to extend for future higher rates";
229 leaf monitoring-mode {
231 enum "not-terminated" {
233 "Not Terminated: no detection or generation.
234 Overhead is passed through the interface transparently in receive direction";
238 "Terminated: detection and generation enabled.
239 Overhead is erased (replaced with all zeros) in receive direction";
243 "Monitored: detection enabled.
244 Overhead is passed through the interface transparently in receive direction";
248 "Monitoring mode of the ODU Overhead";
250 leaf proactive-delay-measurement-enabled {
253 "enable/disable proactive Delay Measurement";
260 "Tandem Connection Management";
267 when "../monitoring-mode = 'terminated' or ../monitoring-mode = 'monitored'";
269 "Optical Channel Payload Unit (OPU)";
273 pattern "[0-9a-fA-F]*";
278 leaf rx-payload-type {
281 pattern "[0-9a-fA-F]*";
284 "Received Payload Type";
286 leaf exp-payload-type {
289 pattern "[0-9a-fA-F]*";
292 "Expected Payload Type";
294 leaf payload-interface {
297 "Expected Payload of OPU. It designates client interface name";
300 when "../payload-type = '20' or ../payload-type = '21'";
323 grouping tcm-attributes {
325 "Tandem Connection Monitoring (TCM) attributes";
333 leaf monitoring-mode {
335 enum "not-terminated" {
337 "Not Terminated: no detection or generation.
338 Overhead is passed through the interface transparently in receive direction
339 unless extension is set for erase";
343 "Terminated: detection and generation enabled.
344 Overhead is erased (replaced with all zeros) in receive direction, unless
345 extension is set to passthrough";
349 "Monitored: detection enabled.
350 Overhead is passed through the interface transparently in receive direction
351 unless extension is set for erase";
355 "Monitoring mode of the TCM layer";
357 leaf ltc-act-enabled {
360 "enable/disable alarm transfer on detection of Loss of Tandem Connection (LTC)";
362 leaf proactive-delay-measurement-enabled {
365 "enable/disable proactive Delay Measurement";
369 grouping odu-container {
371 presence "Attribute Nodes for Optical Data Unit (ODU)";
373 "Optical Channel Data Unit (ODU)";
374 uses odu-attributes {
375 refine "opu/rx-payload-type" {
382 uses org-openroadm-maint-testsignal:maint-testsignal;
386 augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface" {
387 when "org-openroadm-device:type = 'openROADM-if:otnOdu'";