1 module org-openroadm-otn-otu-interfaces {
2 namespace "http://org/openroadm/otn-otu-interfaces";
3 prefix org-openroadm-otn-otu-interfaces;
5 import org-openroadm-device {
6 prefix org-openroadm-device;
7 revision-date 2020-05-29;
9 import org-openroadm-interfaces {
11 revision-date 2019-11-29;
13 import org-openroadm-maintenance-loopback {
14 prefix org-openroadm-maint-loopback;
15 revision-date 2019-11-29;
17 import org-openroadm-otn-common {
18 prefix org-openroadm-otn-common;
19 revision-date 2020-03-27;
21 import org-openroadm-otn-common-types {
22 prefix org-openroadm-otn-common-types;
23 revision-date 2020-03-27;
25 import org-openroadm-common-attributes {
26 prefix org-openroadm-common-attributes;
27 revision-date 2020-03-27;
29 import org-openroadm-common-types {
30 prefix org-openroadm-common-types;
31 revision-date 2020-05-29;
39 "YANG definitions for device facility otnotu interfaces.
41 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
42 All other rights reserved.
44 Redistribution and use in source and binary forms, with or without modification,
45 are permitted provided that the following conditions are met:
47 * Redistributions of source code must retain the above copyright notice, this
48 list of conditions and the following disclaimer.
49 * Redistributions in binary form must reproduce the above copyright notice,
50 this list of conditions and the following disclaimer in the documentation and/or
51 other materials provided with the distribution.
52 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
53 contributors may be used to endorse or promote products derived from this software
54 without specific prior written permission.
56 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
57 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
58 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
59 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
60 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
61 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
62 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
63 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
64 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
65 POSSIBILITY OF SUCH DAMAGE.
67 Also contains code components extracted from IETF Interfaces. These code components
68 are copyrighted and licensed as follows:
70 Copyright (c) 2016 IETF Trust and the persons identified as the document authors.
73 This document is subject to BCP 78 and the IETF Trust’s Legal Provisions Relating
74 to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of
75 publication of this document. Please review these documents carefully, as they
76 describe your rights and restrictions with respect to this document. Code Components
77 extracted from this document must include Simplified BSD License text as described in
78 Section 4.e of the Trust Legal Provisions and are provided without warranty as
79 described in the Simplified BSD License.";
101 revision 2019-03-29 {
105 revision 2018-11-30 {
109 revision 2018-09-28 {
113 revision 2018-05-30 {
117 revision 2018-03-30 {
121 revision 2017-12-15 {
125 revision 2017-09-29 {
129 revision 2017-07-28 {
131 "Version 2.0.1 - added revision-date to imports";
133 revision 2017-06-26 {
137 revision 2016-10-14 {
142 grouping otu-attributes {
147 base org-openroadm-otn-common-types:otu-rate-identity;
150 "rate identity of the OTU. 'identityref' is used
151 to allow to extend for future higher rates";
153 leaf otu4-member-id {
154 when "../rate = 'org-openroadm-otn-common-types:OTU4'";
157 "To uniquely identify each member of an OTSi group and the order of each member in the group.
158 Similar to FlexO PHY-ID in the FlexO Group (PID in G.709.1/3)";
163 "Specify the N associated with OTUCn, e.g. N = 2,3,4 for 200G/300G/400G respectively";
165 leaf otucn-M-subrate {
168 "OTUCn subrate (OTUCn-M), value of M specifies the number of active
169 5 Gbit/s OPUCn tributary slots (G.709 Annex H)";
172 uses org-openroadm-common-types:fec-grouping {
174 "OTU FEC / Forward Error Correction";
176 uses org-openroadm-otn-common:trail-trace;
177 uses org-openroadm-common-attributes:deg-threshold;
180 grouping otu-container {
183 "Optical Channel Transport Unit (OTU)";
185 uses org-openroadm-maint-loopback:maint-loopback;
189 augment "/org-openroadm-device:org-openroadm-device/org-openroadm-device:interface" {
190 when "org-openroadm-device:type = 'openROADM-if:otnOtu'";