26a6879c62b2f1b51e50c00b4dc3def56fce1fde
[transportpce.git] / ordmodels / common / src / main / yang / org-openroadm-otn-common-types@2016-10-14.yang
1 module org-openroadm-otn-common-types {
2   namespace "http://org/openroadm/otn-common-types";
3   prefix org-openroadm-otn-common-types;
4
5   organization
6     "Open ROADM MSA";
7   contact
8     "OpenROADM.org";
9   description
10     "YANG definitions for common otn related type definitions.
11
12      Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
13      AT&T Intellectual Property.  All other rights reserved.
14
15      Redistribution and use in source and binary forms, with or without modification,
16      are permitted provided that the following conditions are met:
17
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.
26
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.
37
38      Also contains code components extracted from IETF Interfaces.  These code components
39      are copyrighted and licensed as follows:
40
41      Copyright (c) 2016 IETF Trust and the persons identified as the document authors.
42      All rights reserved.
43
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.";
51
52   revision 2017-09-29 {
53     description
54       "Version 2.1";
55   }
56
57   identity otu-rate-identity {
58     description
59       "A unique rate identification of the OTU.";
60   }
61
62   identity OTU4 {
63     base otu-rate-identity;
64     description
65       "Identity for an OTU4";
66   }
67
68   identity OTU3 {
69     base otu-rate-identity;
70     description
71       "Identity for an OTU3";
72   }
73
74   identity OTU2 {
75     base otu-rate-identity;
76     description
77       "Identity for an OTU2";
78   }
79
80   identity OTU2e {
81     base otu-rate-identity;
82     description
83       "Identity for an OTU2e";
84   }
85
86   identity OTU1 {
87     base otu-rate-identity;
88     description
89       "Identity for an OTU1";
90   }
91
92   identity OTU0 {
93     base otu-rate-identity;
94     description
95       "Identity for an OTU0";
96   }
97
98   identity OTUflex {
99     base otu-rate-identity;
100     description
101       "Identity for an OTUflex";
102   }
103
104   identity odu-payload-type-identity {
105     description
106       "A unique payload type identification of the ODU.";
107   }
108
109   identity PT20 {
110     base odu-payload-type-identity;
111     description
112       "Identity for an ODU Payload 20";
113   }
114
115   identity PT21 {
116     base odu-payload-type-identity;
117     description
118       "Identity for an ODU Payload 21";
119   }
120
121   identity PT22 {
122     base odu-payload-type-identity;
123     description
124       "Identity for an ODU Payload 22";
125   }
126
127   identity odu-rate-identity {
128     description
129       "A unique rate identification of the ODU.";
130   }
131
132   identity ODU4 {
133     base odu-rate-identity;
134     description
135       "Identity for an ODU4";
136   }
137
138   identity ODU3 {
139     base odu-rate-identity;
140     description
141       "Identity for an ODU3";
142   }
143
144   identity ODU2 {
145     base odu-rate-identity;
146     description
147       "Identity for an ODU2";
148   }
149
150   identity ODU2e {
151     base odu-rate-identity;
152     description
153       "Identity for an ODU2e";
154   }
155
156   identity ODU1 {
157     base odu-rate-identity;
158     description
159       "Identity for an ODU1";
160   }
161
162   identity ODU0 {
163     base odu-rate-identity;
164     description
165       "Identity for an ODU0";
166   }
167
168   identity ODUflex-cbr {
169     base odu-rate-identity;
170     description
171       "Identity for an ODUflex-cbr";
172   }
173
174   identity ODUflex-gfp {
175     base odu-rate-identity;
176     description
177       "Identity for an ODUflex-gfp";
178   }
179
180   identity odtu-type-identity {
181     description
182       "A unique identification for the MSI odtu type.";
183   }
184
185   identity ODTU4.ts-Allocated {
186     base odtu-type-identity;
187     description
188       "OPU4 MSI - ODTU4.ts, OPU4 MSI TS is occupied/allocated.
189        Applies to all ODTU4.x mappings";
190   }
191
192   identity ODTU01 {
193     base odtu-type-identity;
194     description
195       "ODTU01 MSI type";
196   }
197
198   identity ODTU12 {
199     base odtu-type-identity;
200     description
201       "ODTU12 MSI type";
202   }
203
204   identity ODTU13 {
205     base odtu-type-identity;
206     description
207       "ODTU13 MSI type";
208   }
209
210   identity ODTU23 {
211     base odtu-type-identity;
212     description
213       "ODTU23 MSI type";
214   }
215
216   identity ODTU2.ts {
217     base odtu-type-identity;
218     description
219       "ODTU2.ts MSI type";
220   }
221
222   identity ODTU3.ts {
223     base odtu-type-identity;
224     description
225       "ODTU3.ts MSI type";
226   }
227
228   identity unallocated {
229     base odtu-type-identity;
230     description
231       "Unallocated MSI type";
232   }
233
234   identity odu-function-identity {
235     description
236       "A unique identification of the ODUk interface function.";
237   }
238
239   identity ODU-TTP {
240     base odu-function-identity;
241     description
242       "ODU TTP facility facing trail termination";
243   }
244
245   identity ODU-CTP {
246     base odu-function-identity;
247     description
248       "ODU CTP connection termination";
249   }
250
251   identity ODU-TTP-CTP {
252     base odu-function-identity;
253     description
254       "ODU CTP mapper level connection termination with trail termination and client adaptation";
255   }
256
257 }