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.";
81 "Version 2.0.1 - added revision-date to imports";
92 identity supported-if-capability {
94 "Base identity from which specific supported interfaces are derived";
98 base supported-if-capability;
102 base supported-if-capability;
106 base supported-if-capability;
110 base supported-if-capability;
114 base supported-if-capability;
117 identity if-OTS-OMS-MC-NMC {
118 base supported-if-capability;
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;
141 identity if-OCH-OTU1-ODU1 {
142 base supported-if-capability;
145 identity if-OCH-OTU2-ODU2 {
146 base supported-if-capability;
149 identity if-OCH-OTU2E-ODU2E {
150 base supported-if-capability;
153 identity if-OCH-OTU3-ODU3 {
154 base supported-if-capability;
157 identity if-OCH-OTU4-ODU4 {
158 base supported-if-capability;
161 identity if-OTUCn-ODUCn {
162 base supported-if-capability;
165 identity if-otsi-flexo-flexogroup {
166 base supported-if-capability;
169 identity if-otsi-otsigroup {
170 base supported-if-capability;
173 identity if-n-OTU4-ODU4 {
174 base supported-if-capability;
177 identity if-otsi-otucn-oducn {
178 base supported-if-capability;
182 identity if-OTU4-ODU4 {
183 base supported-if-capability;
186 identity if-OTU1-ODU1 {
187 base supported-if-capability;
190 identity if-OTU2-ODU2 {
191 base supported-if-capability;
194 identity if-OTU2e-ODU2e {
195 base supported-if-capability;
198 identity if-OTU3-ODU3 {
199 base supported-if-capability;
202 identity if-1GE-ODU0 {
203 base supported-if-capability;
206 identity if-10GE-ODU2 {
207 base supported-if-capability;
210 identity if-10GE-ODU2e {
211 base supported-if-capability;
214 identity if-10GE-oduflexgfp {
215 base supported-if-capability;
218 identity if-25GE-oduflexcbr {
219 base supported-if-capability;
222 identity if-40GE-ODU3 {
223 base supported-if-capability;
226 identity if-40GE-oduflexgfp {
227 base supported-if-capability;
230 identity if-100GE-ODU4 {
231 base supported-if-capability;
234 identity if-100GE-oduflexgfp {
235 base supported-if-capability;
238 identity if-200GE-oduflexcbr {
239 base supported-if-capability;
242 identity if-400GE-odufleximp {
243 base supported-if-capability;
246 identity if-400GE-oduflexcbr {
247 base supported-if-capability;
250 identity supported-xpdr-capability {
252 "Base identity from which specific supported xponder are derived";
255 identity Transponder {
256 base supported-xpdr-capability;
260 base supported-xpdr-capability;
263 identity pluggable-identifiers-identity {
265 "Pluggable identifiers type";
269 base pluggable-identifiers-identity;
273 base pluggable-identifiers-identity;
277 base pluggable-identifiers-identity;
281 base pluggable-identifiers-identity;
285 base pluggable-identifiers-identity;
288 identity DWDM-SFP-plus {
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;
309 base pluggable-identifiers-identity;
312 identity micro-QSFP {
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;
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;
364 identity SFP-unspecified {
365 base pluggable-identifiers-identity;
368 identity pluggable-type-other {
369 base pluggable-identifiers-identity;
372 identity pluggable-type-unspecified {
373 base pluggable-identifiers-identity;
376 typedef port-wavelength-types {
381 "Port on a transponder or ROADM SRG add drop";
383 enum multi-wavelength {
386 "External port connecting to other roadm.";
393 typedef port-module-types {
403 "Pluggable modue types.";
406 grouping common-port {
407 leaf port-power-capability-min-rx {
408 type org-openroadm-common-link-types:power-dBm;
411 "Based on port capabilities, the minimum power in the system spec for this port to
412 provide optimum function in rx direction";
414 leaf port-power-capability-min-tx {
415 type org-openroadm-common-link-types:power-dBm;
418 "Based on port capabilities, the minimum power in the system spec for this port to
419 provide optimum function in tx direction.";
421 leaf port-power-capability-max-rx {
422 type org-openroadm-common-link-types:power-dBm;
425 "Based on port capabilities, the maximum power in the system spec for this port to
426 provide optimum function in rx direction.";
428 leaf port-power-capability-max-tx {
429 type org-openroadm-common-link-types:power-dBm;
432 "Based on port capabilities, the maximum power in the system spec for this port to
433 provide optimum function in tx direction.";
437 grouping roadm-port {