1 module org-openroadm-port-types {
2 namespace "http://org/openroadm/port/types";
3 prefix org-openroadm-port-types;
5 import org-openroadm-common-types {
6 prefix org-openroadm-common-types;
7 revision-date 2016-10-14;
15 "YANG definitions for port types.
17 Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016,
18 AT&T Intellectual Property. 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.";
49 "Version 2.0.1 - added revision-date to imports";
60 identity supported-if-capability {
62 "Base identity from which specific supported interfaces are derived";
66 base supported-if-capability;
70 base supported-if-capability;
74 base supported-if-capability;
78 base supported-if-capability;
82 base supported-if-capability;
86 base supported-if-capability;
90 base supported-if-capability;
93 identity if-OCH-OTU1-ODU1 {
94 base supported-if-capability;
97 identity if-OCH-OTU2-ODU2 {
98 base supported-if-capability;
101 identity if-OCH-OTU2E-ODU2E {
102 base supported-if-capability;
105 identity if-OCH-OTU3-ODU3 {
106 base supported-if-capability;
109 identity if-OCH-OTU4-ODU4 {
110 base supported-if-capability;
113 identity if-OTU4-ODU4 {
114 base supported-if-capability;
117 identity supported-xpdr-capability {
119 "Base identity from which specific supported xponder are derived";
122 identity Transponder {
123 base supported-xpdr-capability;
127 base supported-xpdr-capability;
130 typedef port-wavelength-types {
135 "Port on a transponder or ROADM SRG add drop";
137 enum "multi-wavelength" {
140 "External port connecting to other roadm.";
147 grouping common-port {
148 leaf port-power-capability-min-rx {
149 type org-openroadm-common-types:power-dBm;
152 "Based on port capabilities, the minimum power in the system spec for this port to
153 provide optimum function in rx direction";
155 leaf port-power-capability-min-tx {
156 type org-openroadm-common-types:power-dBm;
159 "Based on port capabilities, the minimum power in the system spec for this port to
160 provide optimum function in tx direction.";
162 leaf port-power-capability-max-rx {
163 type org-openroadm-common-types:power-dBm;
166 "Based on port capabilities, the maximum power in the system spec for this port to
167 provide optimum function in rx direction.";
169 leaf port-power-capability-max-tx {
170 type org-openroadm-common-types:power-dBm;
173 "Based on port capabilities, the maximum power in the system spec for this port to
174 provide optimum function in tx direction.";
178 grouping roadm-port {