1 module org-openroadm-otn-common-types {
2 namespace "http://org/openroadm/otn-common-types";
3 prefix org-openroadm-otn-common-types;
10 "YANG definitions for common otn related type definitions.
12 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
13 All other rights reserved.
15 Redistribution and use in source and binary forms, with or without modification,
16 are permitted provided that the following conditions are met:
18 * Redistributions of source code must retain the above copyright notice, this
19 list of conditions and the following disclaimer.
20 * Redistributions in binary form must reproduce the above copyright notice,
21 this list of conditions and the following disclaimer in the documentation and/or
22 other materials provided with the distribution.
23 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
24 contributors may be used to endorse or promote products derived from this software
25 without specific prior written permission.
27 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
28 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
29 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
30 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
31 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
32 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
33 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
34 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 POSSIBILITY OF SUCH DAMAGE.
38 Also contains code components extracted from IETF Interfaces. These code components
39 are copyrighted and licensed as follows:
41 Copyright (c) 2016 IETF Trust and the persons identified as the document authors.
44 This document is subject to BCP 78 and the IETF Trust’s Legal Provisions Relating
45 to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of
46 publication of this document. Please review these documents carefully, as they
47 describe your rights and restrictions with respect to this document. Code Components
48 extracted from this document must include Simplified BSD License text as described in
49 Section 4.e of the Trust Legal Provisions and are provided without warranty as
50 described in the Simplified BSD License.";
89 identity otu-rate-identity {
91 "A unique rate identification of the OTU.";
95 base otu-rate-identity;
97 "Identity for an OTUCn";
101 base otu-rate-identity;
103 "Identity for an OTU4";
107 base otu-rate-identity;
109 "Identity for an OTU3";
113 base otu-rate-identity;
115 "Identity for an OTU2";
119 base otu-rate-identity;
121 "Identity for an OTU2e";
125 base otu-rate-identity;
127 "Identity for an OTU1";
131 base otu-rate-identity;
133 "Identity for an OTU0";
137 base otu-rate-identity;
139 "Identity for an OTUflex";
142 identity odu-rate-identity {
144 "A unique rate identification of the ODU.";
148 base odu-rate-identity;
150 "Identity for an ODUCn";
154 base odu-rate-identity;
156 "Identity for an ODU4";
160 base odu-rate-identity;
162 "Identity for an ODU3";
166 base odu-rate-identity;
168 "Identity for an ODU2";
172 base odu-rate-identity;
174 "Identity for an ODU2e";
178 base odu-rate-identity;
180 "Identity for an ODU1";
184 base odu-rate-identity;
186 "Identity for an ODU0";
189 identity ODUflex-cbr {
190 base odu-rate-identity;
192 "ODUFlex for CBR client signals (G.709)";
195 identity ODUflex-cbr-identity {
197 "Service type for ODUflex (CBR)";
200 identity ODUflex-cbr-25G {
201 base ODUflex-cbr-identity;
203 "ODUFlex for CBR client signals 25G (G.709 17.13.1)";
206 identity ODUflex-cbr-200G {
207 base ODUflex-cbr-identity;
209 "ODUFlex for CBR client signals 200G (G.709 17.13.2)";
212 identity ODUflex-cbr-400G {
213 base ODUflex-cbr-identity;
215 "ODUFlex for CBR client signals 400G (G.709 17.13.2)";
218 identity ODUflex-imp {
219 base odu-rate-identity;
221 "ODUFlex for IMP (Idle insertion Mapping Procedure) mapped client signals (G.709)";
224 identity ODUflex-flexe {
225 base odu-rate-identity;
227 "ODUflex for FlexE-aware client signals (G.709)";
230 identity ODUflex-gfp {
231 base odu-rate-identity;
233 "ODUflex for GFP-F mapped client signals (G.709)";
236 identity odtu-type-identity {
238 "A unique identification for the MSI odtu type.";
242 base odtu-type-identity;
244 "ODTUCn.ts - OPUCn MSI type (G.709 clause 20.2)";
247 identity ODTU4.ts-Allocated {
248 base odtu-type-identity;
250 "OPU4 MSI - ODTU4.ts, OPU4 MSI TS is occupied/allocated.
251 Applies to all ODTU4.x mappings";
255 base odtu-type-identity;
261 base odtu-type-identity;
267 base odtu-type-identity;
273 base odtu-type-identity;
279 base odtu-type-identity;
285 base odtu-type-identity;
291 base odtu-type-identity;
296 identity unallocated {
297 base odtu-type-identity;
299 "Unallocated MSI type";
302 identity odu-function-identity {
304 "A unique identification of the ODUk interface function.";
308 base odu-function-identity;
310 "ODU TTP facility facing trail termination";
314 base odu-function-identity;
316 "ODU CTP connection termination";
319 identity ODU-TTP-CTP {
320 base odu-function-identity;
322 "ODU CTP mapper level connection termination with trail termination and client adaptation";
325 typedef payload-type-def {
328 pattern '[0-9a-fA-F]*';
331 "Common type definition for odu payload-type";
334 typedef flexo-payload-type-def {
337 pattern '[0-9a-fA-F]*';
340 "Common type definition for flexo payload-type (Section 9.2.6.2,
344 typedef opucn-trib-slot-def {
347 "OPUCn trib slot in the form of 'A.B' with
352 typedef tcm-direction-enum {
356 "TCM termination direction faces the switch fabric.";
360 "TCM termination direction faces the facility";
364 "Enumeration type for TCM direction";