Sync Common folder
[transportpce.git] / ordmodels / common / src / main / yang / org-openroadm-port-types@2017-12-15.yang
1 module org-openroadm-port-types {
2   namespace "http://org/openroadm/port/types";
3   prefix org-openroadm-port-types;
4
5   import org-openroadm-common-types {
6     prefix org-openroadm-common-types;
7     revision-date 2017-12-15;
8   }
9
10   organization
11     "Open ROADM MSA";
12   contact
13     "OpenROADM.org";
14   description
15     "YANG definitions for port types.
16      
17      Copyright of the Members of the Open ROADM MSA Agreement dated (c) 2016, 
18      AT&T Intellectual Property.  All other rights reserved.
19      
20      Redistribution and use in source and binary forms, with or without modification, 
21      are permitted provided that the following conditions are met:
22      
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.
31      
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.";
42
43   revision 2017-12-15 {
44     description
45       "Version 2.2";
46   }
47   revision 2017-09-29 {
48     description
49       "Version 2.1";
50   }
51   revision 2017-07-28 {
52     description
53       "Version 2.0.1 - added revision-date to imports";
54   }
55   revision 2017-06-26 {
56     description
57       "Version 2.0";
58   }
59   revision 2016-10-14 {
60     description
61       "Version 1.2";
62   }
63
64   identity supported-if-capability {
65     description
66       "Base identity from which specific supported interfaces are derived";
67   }
68
69   identity if-100GE {
70     base supported-if-capability;
71   }
72
73   identity if-OMS {
74     base supported-if-capability;
75   }
76
77   identity if-OTS {
78     base supported-if-capability;
79   }
80
81   identity if-OCH {
82     base supported-if-capability;
83   }
84
85   identity if-1GE {
86     base supported-if-capability;
87   }
88
89   identity if-10GE {
90     base supported-if-capability;
91   }
92
93   identity if-40GE {
94     base supported-if-capability;
95   }
96
97   identity if-OCH-OTU1-ODU1 {
98     base supported-if-capability;
99   }
100
101   identity if-OCH-OTU2-ODU2 {
102     base supported-if-capability;
103   }
104
105   identity if-OCH-OTU2E-ODU2E {
106     base supported-if-capability;
107   }
108
109   identity if-OCH-OTU3-ODU3 {
110     base supported-if-capability;
111   }
112
113   identity if-OCH-OTU4-ODU4 {
114     base supported-if-capability;
115   }
116
117   identity if-OTU4-ODU4 {
118     base supported-if-capability;
119   }
120
121   identity if-OTU1-ODU1 {
122     base supported-if-capability;
123   }
124
125   identity if-OTU2-ODU2 {
126     base supported-if-capability;
127   }
128
129   identity if-OTU2e-ODU2e {
130     base supported-if-capability;
131   }
132
133   identity if-OTU3-ODU3 {
134     base supported-if-capability;
135   }
136
137   identity if-1GE-ODU0 {
138     base supported-if-capability;
139   }
140
141   identity if-10GE-ODU2 {
142     base supported-if-capability;
143   }
144
145   identity if-10GE-ODU2e {
146     base supported-if-capability;
147   }
148
149   identity if-40GE-ODU3 {
150     base supported-if-capability;
151   }
152
153   identity if-100GE-ODU4 {
154     base supported-if-capability;
155   }
156
157   identity supported-xpdr-capability {
158     description
159       "Base identity from which specific supported xponder are derived";
160   }
161
162   identity Transponder {
163     base supported-xpdr-capability;
164   }
165
166   identity Regen {
167     base supported-xpdr-capability;
168   }
169
170   typedef port-wavelength-types {
171     type enumeration {
172       enum "wavelength" {
173         value 1;
174         description
175           "Port on a transponder or ROADM SRG add drop";
176       }
177       enum "multi-wavelength" {
178         value 2;
179         description
180           "External port connecting to other roadm.";
181       }
182     }
183     description
184       "Port types.";
185   }
186
187   grouping common-port {
188     leaf port-power-capability-min-rx {
189       type org-openroadm-common-types:power-dBm;
190       config false;
191       description
192         "Based on port capabilities, the minimum power in the system spec for this port to
193          provide optimum function in rx direction";
194     }
195     leaf port-power-capability-min-tx {
196       type org-openroadm-common-types:power-dBm;
197       config false;
198       description
199         "Based on port capabilities, the minimum power in the system spec for this port to
200          provide optimum function in tx direction.";
201     }
202     leaf port-power-capability-max-rx {
203       type org-openroadm-common-types:power-dBm;
204       config false;
205       description
206         "Based on port capabilities, the maximum power in the system spec for this port to
207          provide optimum function in rx direction.";
208     }
209     leaf port-power-capability-max-tx {
210       type org-openroadm-common-types:power-dBm;
211       config false;
212       description
213         "Based on port capabilities, the maximum power in the system spec for this port to
214          provide optimum function in tx direction.";
215     }
216   }
217
218   grouping roadm-port {
219     uses common-port;
220   }
221 }