1 module org-openroadm-port-types {
2 namespace "http://org/openroadm/port/types";
3 prefix org-openroadm-port-types;
5 import org-openroadm-common-link-types {
6 prefix org-openroadm-common-link-types;
7 revision-date 2019-11-29;
15 "YANG definitions for port types.
17 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
18 All other rights reserved.
20 Redistribution and use in source and binary forms, with or without modification,
21 are permitted provided that the following conditions are met:
23 * Redistributions of source code must retain the above copyright notice, this
24 list of conditions and the following disclaimer.
25 * Redistributions in binary form must reproduce the above copyright notice,
26 this list of conditions and the following disclaimer in the documentation and/or
27 other materials provided with the distribution.
28 * Neither the Members of the Open ROADM MSA Agreement nor the names of its
29 contributors may be used to endorse or promote products derived from this software
30 without specific prior written permission.
32 THIS SOFTWARE IS PROVIDED BY THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT ''AS IS''
33 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
34 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
35 IN NO EVENT THE MEMBERS OF THE OPEN ROADM MSA AGREEMENT BE LIABLE FOR ANY DIRECT,
36 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
37 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
38 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
39 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
40 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 POSSIBILITY OF SUCH DAMAGE.";
85 "Version 2.0.1 - added revision-date to imports";
96 identity supported-if-capability {
98 "Base identity from which specific supported interfaces are derived";
102 base supported-if-capability;
106 base supported-if-capability;
110 base supported-if-capability;
114 base supported-if-capability;
118 base supported-if-capability;
121 identity if-OTS-OMS-MC-NMC {
122 base supported-if-capability;
126 base supported-if-capability;
130 base supported-if-capability;
134 base supported-if-capability;
138 base supported-if-capability;
142 base supported-if-capability;
145 identity if-OCH-OTU1-ODU1 {
146 base supported-if-capability;
149 identity if-OCH-OTU2-ODU2 {
150 base supported-if-capability;
153 identity if-OCH-OTU2E-ODU2E {
154 base supported-if-capability;
157 identity if-OCH-OTU3-ODU3 {
158 base supported-if-capability;
161 identity if-OCH-OTU4-ODU4 {
162 base supported-if-capability;
165 identity if-OCH-OTU4-ODU4-regen {
166 base supported-if-capability;
169 identity if-OCH-OTU4-ODU4-uniregen {
170 base supported-if-capability;
173 identity if-OTUCn-ODUCn {
174 base supported-if-capability;
177 identity if-OTUCn-ODUCn-regen {
178 base supported-if-capability;
181 identity if-OTUCn-ODUCn-uniregen {
182 base supported-if-capability;
185 identity if-otsi-flexo-flexogroup {
186 base supported-if-capability;
189 identity if-otsi-otsigroup {
190 base supported-if-capability;
193 identity if-n-OTU4-ODU4 {
194 base supported-if-capability;
197 identity if-otsi-otucn-oducn {
198 base supported-if-capability;
202 identity if-OTU4-ODU4 {
203 base supported-if-capability;
206 identity if-OTU1-ODU1 {
207 base supported-if-capability;
210 identity if-OTU2-ODU2 {
211 base supported-if-capability;
214 identity if-OTU2e-ODU2e {
215 base supported-if-capability;
218 identity if-OTU3-ODU3 {
219 base supported-if-capability;
222 identity if-1GE-ODU0 {
223 base supported-if-capability;
226 identity if-10GE-ODU2 {
227 base supported-if-capability;
230 identity if-10GE-ODU2e {
231 base supported-if-capability;
234 identity if-10GE-oduflexgfp {
235 base supported-if-capability;
238 identity if-25GE-oduflexcbr {
239 base supported-if-capability;
242 identity if-40GE-ODU3 {
243 base supported-if-capability;
246 identity if-40GE-oduflexgfp {
247 base supported-if-capability;
250 identity if-100GE-ODU4 {
251 base supported-if-capability;
254 identity if-100GE-oduflexgfp {
255 base supported-if-capability;
258 identity if-200GE-oduflexcbr {
259 base supported-if-capability;
262 identity if-400GE-odufleximp {
263 base supported-if-capability;
266 identity if-400GE-oduflexcbr {
267 base supported-if-capability;
270 identity supported-xpdr-capability {
272 "Base identity from which specific supported xponder are derived";
275 identity Transponder {
276 base supported-xpdr-capability;
280 base supported-xpdr-capability;
283 identity pluggable-identifiers-identity {
285 "Pluggable identifiers type";
289 base pluggable-identifiers-identity;
293 base pluggable-identifiers-identity;
297 base pluggable-identifiers-identity;
301 base pluggable-identifiers-identity;
305 base pluggable-identifiers-identity;
308 identity DWDM-SFP-plus {
309 base pluggable-identifiers-identity;
313 base pluggable-identifiers-identity;
317 base pluggable-identifiers-identity;
321 base pluggable-identifiers-identity;
325 base pluggable-identifiers-identity;
329 base pluggable-identifiers-identity;
332 identity micro-QSFP {
333 base pluggable-identifiers-identity;
337 base pluggable-identifiers-identity;
341 base pluggable-identifiers-identity;
345 base pluggable-identifiers-identity;
349 base pluggable-identifiers-identity;
353 base pluggable-identifiers-identity;
357 base pluggable-identifiers-identity;
361 base pluggable-identifiers-identity;
365 base pluggable-identifiers-identity;
369 base pluggable-identifiers-identity;
373 base pluggable-identifiers-identity;
377 base pluggable-identifiers-identity;
381 base pluggable-identifiers-identity;
384 identity SFP-unspecified {
385 base pluggable-identifiers-identity;
388 identity pluggable-type-other {
389 base pluggable-identifiers-identity;
392 identity pluggable-type-unspecified {
393 base pluggable-identifiers-identity;
396 typedef port-wavelength-types {
401 "Port on a transponder or ROADM SRG add drop";
403 enum multi-wavelength {
406 "External port connecting to other roadm.";
413 typedef port-module-types {
423 "Pluggable modue types.";
426 grouping common-port {
427 leaf port-power-capability-min-rx {
428 type org-openroadm-common-link-types:power-dBm;
431 "Based on port capabilities, the minimum power in the system spec for this port to
432 provide optimum function in rx direction";
434 leaf port-power-capability-min-tx {
435 type org-openroadm-common-link-types:power-dBm;
438 "Based on port capabilities, the minimum power in the system spec for this port to
439 provide optimum function in tx direction.";
441 leaf port-power-capability-max-rx {
442 type org-openroadm-common-link-types:power-dBm;
445 "Based on port capabilities, the maximum power in the system spec for this port to
446 provide optimum function in rx direction.";
448 leaf port-power-capability-max-tx {
449 type org-openroadm-common-link-types:power-dBm;
452 "Based on port capabilities, the maximum power in the system spec for this port to
453 provide optimum function in tx direction.";
457 grouping roadm-port {