1 module org-openroadm-otn-common {
2 namespace "http://org/openroadm/otn-common";
3 prefix org-openroadm-otn-common;
5 import org-openroadm-resource-types {
6 prefix org-openroadm-resource-types;
7 revision-date 2019-11-29;
9 import org-openroadm-otn-common-types {
10 prefix org-openroadm-otn-common-types;
11 revision-date 2020-03-27;
13 import org-openroadm-common-attributes {
14 prefix org-openroadm-common-attributes;
15 revision-date 2020-03-27;
23 "YANG definitions for common OTN interface attributes and types.
25 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
26 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.";
90 typedef otn-interface-enum {
100 "ODU Path enumeration";
105 "ODU TCM enumeration";
109 "Enumeration type for otn interface";
112 grouping trail-trace-state {
114 "Trail trace state grouping";
119 "The accepted SAPI recovered from the received multi-frame TTI field.
120 Received SAPI contains the receive data, minus the sapi[0] and any 0x00 padding at the end";
126 "The accepted DAPI recovered from the received multi-frame TTI field
127 Received DAPI contains the receive data, minus the dapi[0] and any 0x00 padding at the end";
129 leaf accepted-operator {
133 "The accepted Operator Specific field recovered from the received multi-frame TTI field";
137 grouping trail-trace {
139 "Trail trace grouping";
140 uses org-openroadm-common-attributes:trail-trace-tx;
141 uses trail-trace-state;
142 uses org-openroadm-common-attributes:trail-trace-other;
145 notification otn-tti-info-change {
147 "Notification for OTN TTI";
149 type org-openroadm-resource-types:resource-type-enum;
152 "Resource type for OTN TTI";
158 "Resource for OTN TTI";
160 leaf otn-interface-type {
161 type otn-interface-enum;
164 "OTN interface type for TTI";
166 leaf otn-interface-tcm-layer {
167 when "../otn-interface-type='odu-tcm'";
170 "TCM layer for OTN TTI";
172 leaf otn-interface-tcm-direction {
173 when "../otn-interface-type='odu-tcm'";
174 type org-openroadm-otn-common-types:tcm-direction-enum;
176 "TCM direction for OTN TTI";
180 "Container for TTI info";
184 "Accepted SAPI for TTI";
189 "Accepted DAPI for TTI";
191 leaf accepted-operator {
194 "Accepted operator for TTI";