blob: 8d104b9082fc7ee4933e1f3cbf1e2d3408f52d9d [file] [log] [blame]
Toru Furusawa28988892017-10-30 17:28:40 -07001module tapi-odu {
Yuta HIGUCHI80d0bbd2018-02-28 11:13:11 -08002 namespace "urn:onf:otcc:yang:tapi-odu";
Toru Furusawa28988892017-10-30 17:28:40 -07003 prefix tapi-odu;
4 import tapi-common {
5 prefix tapi-common;
6 }
7 import tapi-connectivity {
8 prefix tapi-connectivity;
9 }
10 import tapi-topology {
11 prefix tapi-topology;
12 }
13 import tapi-oam {
14 prefix tapi-oam;
15 }
hirokid8fd7862018-10-09 15:24:24 +090016 import tapi-dsr {
17 prefix tapi-dsr;
18 }
Yuta HIGUCHI80d0bbd2018-02-28 11:13:11 -080019 organization "ONF OTCC (Open Transport Configuration & Control) Project";
hirokid8fd7862018-10-09 15:24:24 +090020 contact "
21 Project Web: <https://wiki.opennetworking.org/display/OTCC/TAPI>
22 Project List: <mailto:transport-api@opennetworking.org>
23 Editor: Karthik Sethuraman
24 <mailto:karthik.sethuraman@necam.com>";
Yuta HIGUCHI80d0bbd2018-02-28 11:13:11 -080025 description "
26 This module contains TAPI Odu Model definitions.
27 Source: TapiOdu.uml
hiroki96ab3c22018-12-11 14:10:52 -080028 - The TAPI YANG models included in this TAPI release are a *normative* part of the TAPI SDK.
29 - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]
30 <https://github.com/OpenNetworkingFoundation/EagleUmlYang>
31 and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]
32 <https://wiki.opennetworking.org/display/OIMT/UML+-+YANG+Guidelines>
33 - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.
34 As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.
35 - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.
36 The YANG model backward compatibility criteria are outlined in section 11 of <https://tools.ietf.org/html/rfc7950>.
37 YANG models included in this release may not be backward compatible with previous TAPI releases.
Yuta HIGUCHI80d0bbd2018-02-28 11:13:11 -080038 Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.
39 License: This module is distributed under the Apache License 2.0";
hiroki96ab3c22018-12-11 14:10:52 -080040 revision 2018-12-10 {
41 description "ONF Transport API version 2.1.1.
42 Changes included in this TAPI release (v2.1.1) are listed in
43 <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.1.md>";
44 reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model
45 <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";
46 }
hirokid8fd7862018-10-09 15:24:24 +090047 revision 2018-10-16 {
48 description "ONF Transport API version 2.1.0.
hiroki96ab3c22018-12-11 14:10:52 -080049 Changes included in this TAPI release (v2.1.0) are listed in
50 <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.md>";
Ai Hamano06163902018-12-06 09:18:20 +090051 reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 7950, RFC 6087 and ONF TAPI UML model
hirokid8fd7862018-10-09 15:24:24 +090052 <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.1.0/UML>";
53 }
Yuta HIGUCHI7f165b12018-03-25 19:05:29 -070054 revision 2018-03-07 {
Ai Hamano06163902018-12-06 09:18:20 +090055 description "ONF Transport API version 2.0.2
56 This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
Yuta HIGUCHIe1ca23f2018-04-06 10:05:45 -070057 Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md>";
Ai Hamano06163902018-12-06 09:18:20 +090058 reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
Yuta HIGUCHIe1ca23f2018-04-06 10:05:45 -070059 <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML>";
60 }
61 revision 2018-02-16 {
Ai Hamano06163902018-12-06 09:18:20 +090062 description "ONF Transport API version 2.0.1
63 This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
Yuta HIGUCHIe1ca23f2018-04-06 10:05:45 -070064 Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md>";
Ai Hamano06163902018-12-06 09:18:20 +090065 reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
Yuta HIGUCHIe1ca23f2018-04-06 10:05:45 -070066 <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML>";
67 }
68 revision 2018-01-02 {
Ai Hamano06163902018-12-06 09:18:20 +090069 description "ONF Transport API version 2.0.0
70 This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
Yuta HIGUCHIe1ca23f2018-04-06 10:05:45 -070071 Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md>";
Ai Hamano06163902018-12-06 09:18:20 +090072 reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
Yuta HIGUCHIe1ca23f2018-04-06 10:05:45 -070073 <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML>";
Toru Furusawa28988892017-10-30 17:28:40 -070074 }
hirokid8fd7862018-10-09 15:24:24 +090075 augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point" {
76 container odu-node-edge-point-spec {
77 uses odu-node-edge-point-spec;
78 description "Augments the base LayerProtocol information in NodeEdgePoint with ODU-specific information";
79 }
Toru Furusawa28988892017-10-30 17:28:40 -070080 description "Augments the base LayerProtocol information in NodeEdgePoint with ODU-specific information";
81 }
hirokid8fd7862018-10-09 15:24:24 +090082 augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point/tapi-connectivity:cep-list/tapi-connectivity:connection-end-point" {
83 container odu-connection-end-point-spec {
84 uses odu-connection-end-point-spec;
85 description "none";
86 }
Toru Furusawa28988892017-10-30 17:28:40 -070087 description "none";
88 }
hirokid8fd7862018-10-09 15:24:24 +090089 augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:mep" {
90 container odu-connection-end-point-spec {
91 uses odu-connection-end-point-spec;
92 description "none";
93 }
Toru Furusawa28988892017-10-30 17:28:40 -070094 description "none";
95 }
hirokid8fd7862018-10-09 15:24:24 +090096 augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:mip" {
97 container odu-mip-spec {
98 uses odu-mip-spec;
99 description "none";
100 }
Toru Furusawa28988892017-10-30 17:28:40 -0700101 description "none";
102 }
Ai Hamano06163902018-12-06 09:18:20 +0900103
104 /**************************
Toru Furusawa28988892017-10-30 17:28:40 -0700105 * package object-classes
Ai Hamano06163902018-12-06 09:18:20 +0900106 **************************/
107 grouping odu-termination-and-client-adaptation-pac {
108 leaf opu-tributary-slot-size {
109 type odu-slot-size;
110 config false;
111 description "This attribute is applicable for ODU2 and ODU3 CTP only. It indicates the slot size of the ODU CTP.";
Toru Furusawa28988892017-10-30 17:28:40 -0700112 }
Ai Hamano06163902018-12-06 09:18:20 +0900113 leaf auto-payload-type {
114 type boolean;
115 config false;
116 description "This attribute is applicable when the ODU CTP object instance represents a lower order ODU CTP Source at the client layer of the ODUP/ODUj-21 adaptation function. The value of true of this attribute configures that the adaptation source function shall fall back to the payload type PT=20 if the conditions specified in 14.3.10.1/G.798 are satisfied. ";
117 }
118 leaf configured-client-type {
119 type tapi-dsr:digital-signal-type;
120 config false;
121 description "This attribute configures the type of the client CTP of the server ODU TTP.";
122 }
123 leaf configured-mapping-type {
124 type mapping-type;
125 config false;
126 description "This attributes indicates the configured mapping type.";
127 }
128 container accepted-payload-type {
129 config false;
130 uses odu-payload-type;
131 description "This attribute is applicable when the ODU CTP object instance represents a lower order ODU CTP Sink at the client layer of the ODUP/ODU[i]j or ODUP/ODUj-21 adaptation function.
132 This attribute is a 2-digit Hex code that indicates the new accepted payload type.
133 Valid values are defined in Table 15-8 of ITU-T Recommendation G.709 with one additional value UN_INTERPRETABLE.";
134 }
135 description "This Pac contains the attributes associated with the client adaptation function of the server layer TTP
136 It is present only if the CEP contains a TTP";
137 }
138 grouping odu-connection-end-point-spec {
139 container odu-common {
140 uses odu-common-pac;
Toru Furusawa28988892017-10-30 17:28:40 -0700141 description "none";
142 }
Ai Hamano06163902018-12-06 09:18:20 +0900143 container odu-term-and-adapter {
144 config false;
145 uses odu-termination-and-client-adaptation-pac;
Toru Furusawa28988892017-10-30 17:28:40 -0700146 description "none";
147 }
Ai Hamano06163902018-12-06 09:18:20 +0900148 container odu-ctp {
149 config false;
150 uses odu-ctp-pac;
Toru Furusawa28988892017-10-30 17:28:40 -0700151 description "none";
152 }
Ai Hamano06163902018-12-06 09:18:20 +0900153 container odu-protection {
154 config false;
155 uses odu-protection-pac;
Toru Furusawa28988892017-10-30 17:28:40 -0700156 description "none";
157 }
Ai Hamano06163902018-12-06 09:18:20 +0900158 description "none";
159 }
160 grouping odu-pool-pac {
161 leaf client-capacity {
162 type uint64;
Toru Furusawa28988892017-10-30 17:28:40 -0700163 description "none";
164 }
Ai Hamano06163902018-12-06 09:18:20 +0900165 leaf max-client-instances {
166 type uint64;
167 config false;
Toru Furusawa28988892017-10-30 17:28:40 -0700168 description "none";
169 }
Ai Hamano06163902018-12-06 09:18:20 +0900170 leaf max-client-size {
171 type uint64;
172 config false;
Toru Furusawa28988892017-10-30 17:28:40 -0700173 description "none";
174 }
Ai Hamano06163902018-12-06 09:18:20 +0900175 description "none";
176 }
177 grouping odu-node-edge-point-spec {
178 container odu-pool {
179 config false;
180 uses odu-pool-pac;
Toru Furusawa28988892017-10-30 17:28:40 -0700181 description "none";
182 }
Ai Hamano06163902018-12-06 09:18:20 +0900183 description "none";
184 }
185 grouping odu-ctp-pac {
186 leaf-list tributary-slot-list {
187 type uint64;
188 config false;
189 description "This attribute contains a set of distinct (i.e. unique) integers (e.g. 2, 3, 5, 9, 15 representing the tributary slots TS2, TS3, TS5, TS9 and TS15) which represents the resources occupied by the Low Order ODU Link Connection (e.g. carrying an ODUflex with a bit rate of 6.25G).
190 This attribute applies when the LO ODU_ ConnectionTerminationPoint connects with an HO ODU_TrailTerminationPoint object.
191 It will not apply if this ODU_ ConnectionTerminationPoint object directly connects to an OTU_TrailTerminationPoint object (i.e. OTU has no trib slots).
192 The upper bound of the integer allowed in this set is a function of the HO-ODU server layer to which the ODU connection has been mapped (adapted).
193 Thus, for example, M=8/32/80 for ODU2/ODU3/ODU4 server layers (respectively). Note that the value of this attribute can be changed only in the case of ODUflex and has to be through specific operations (i.e. not be changing the attribute tributarySlotList directly).";
194 }
195 leaf tributary-port-number {
196 type uint64;
197 config false;
198 description "This attribute identifies the tributary port number that is associated with the ODU CTP.
199 range of type : The value range depends on the size of the Tributary Port Number (TPN) field used which depends on th server-layer ODU or OTU.
200 In case of ODUk mapping into OTUk, there is no TPN field, so the tributaryPortNumber shall be zero.
201 In case of LO ODUj mapping over ODU1, ODU2 or ODU3, the TPN is encoded in a 6-bit field so the value range is 0-63. See clause 14.4.1/G.709-2016.
202 In case of LO ODUj mapping over ODU4, the TPN is encoded in a 7-bit field so the value range is 0-127. See clause 14.4.1.4/G.709-2016.
203 In case of ODUk mapping over ODUCn, the TPN is encoded in a 14-bit field so the value range is 0-16383. See clause 20.4.1.1/G.709-2016.
204 ";
205 }
206 leaf accepted-msi {
207 type string;
208 config false;
209 description "This attribute is applicable when the ODU CTP object instance represents a lower order ODU1 or ODU2 CTP Sink at the client layer of the ODU3P/ODU12 adaptation function or represents a lower order ODUj CTP Sink at the client layer of the ODUP/ODUj-21 adaptation function. This attribute is a 1-byte field that represents the accepted multiplex structure of the adaptation function. ";
210 }
211 description "This Pac contains the attributes associated with the CTP
212 It is present only if the CEP contains a CTP";
213 }
214 grouping odu-mep-spec {
215 container odu-mep {
216 uses odu-mep-pac;
Toru Furusawa28988892017-10-30 17:28:40 -0700217 description "none";
218 }
Ai Hamano06163902018-12-06 09:18:20 +0900219 container odu-ncm {
220 config false;
221 uses odu-ncm-pac;
Toru Furusawa28988892017-10-30 17:28:40 -0700222 description "none";
223 }
Ai Hamano06163902018-12-06 09:18:20 +0900224 container odu-tcm {
225 config false;
226 uses odu-tcm-mep-pac;
227 description "none";
228 }
229 container odu-defect {
230 uses odu-defect-pac;
231 description "none";
232 }
233 container odu-pm {
234 uses odu-pm-pac;
235 description "none";
236 }
237 description "none";
238 }
239 grouping odu-protection-pac {
240 leaf aps-enable {
241 type boolean;
242 default "true";
243 description "This attribute is for enabling/disabling the automatic protection switching (APS) capability at the transport adaptation function that is represented by the ODU_ConnectionTerminationPoint object class. It triggers the MI_APS_EN signal to the transport adaptation function.";
244 }
245 leaf aps-level {
246 type uint64;
247 description "This attribute is for configuring the automatic protection switching (APS) level that should operate at the transport adaptation function that is represented by the ODU_ConnectionTerminationPoint object class. It triggers the MI_APS_LVL signal to the transport adaptation function. The value 0 means path and the values 1 through 6 mean TCM level 1 through 6 respectively.";
248 }
249 description "none";
250 }
251 grouping odu-ncm-pac {
252 leaf-list tcm-fields-in-use {
253 type uint64;
254 config false;
255 description "This attribute indicates the used TCM fields of the ODU OH.";
256 }
257 description "none";
258 }
259 grouping odu-tcm-mep-pac {
260 leaf tcm-extension {
261 type tcm-extension;
262 description "none";
263 }
264 leaf tcm-mode {
265 type tcm-mode;
266 description "This attribute specifies the TCM mode at the entity. Valid values are: Operational, Monitor, and Transparent.";
267 }
268 leaf codirectional {
269 type boolean;
270 config false;
271 description "This attribute specifies the directionality of the ODUT MEP with respect to the associated ODU CEP. The value of TRUE means that the sink part of the ODUT MEP terminates the same signal direction as the sink part of the ODU CEP. The Source part behaves similarly. This attribute is meaningful only on objects instantiated under ODU CEP, and at least one among ODU CEP and the subordinate object is bidirectional.";
272 }
273 leaf ac-status-source {
274 type tcm-status;
275 config false;
276 description "This attribute indicates the status of the accepted TCM. ";
277 }
278 leaf ac-status-sink {
279 type tcm-status;
280 config false;
281 description "This attribute indicates the status of the accepted TCM. ";
282 }
283 leaf admin-state-source {
284 type tapi-common:administrative-state;
285 description "This attribute provides the capability to provision the LOCK signal at the source, which is one of the ODU maintenance signals. When a Tandem Connection endpoint is set to admin state locked, it will insert the ODU-LCK signal in the source direction.";
286 }
287 leaf admin-state-sink {
288 type tapi-common:administrative-state;
289 description "This attribute provides the capability to provision the LOCK signal at the sink, which is one of the ODU maintenance signals. When a Tandem Connection endpoint is set to admin state locked, it will insert the ODU-LCK signal in the downstream direction.";
290 }
291 uses odu-tcm-mip-pac;
292 description "none";
293 }
294 grouping odu-mip-spec {
295 container odu-mip {
296 config false;
Toru Furusawa28988892017-10-30 17:28:40 -0700297 uses odu-mip-pac;
298 description "none";
299 }
Ai Hamano06163902018-12-06 09:18:20 +0900300 container odu-ncm {
301 config false;
302 uses odu-ncm-pac;
Toru Furusawa28988892017-10-30 17:28:40 -0700303 description "none";
304 }
Ai Hamano06163902018-12-06 09:18:20 +0900305 container odu-tcm {
306 config false;
307 uses odu-tcm-mip-pac;
308 description "none";
Toru Furusawa28988892017-10-30 17:28:40 -0700309 }
Ai Hamano06163902018-12-06 09:18:20 +0900310 container odu-pm {
311 uses odu-pm-pac;
312 description "none";
Toru Furusawa28988892017-10-30 17:28:40 -0700313 }
Ai Hamano06163902018-12-06 09:18:20 +0900314 container odu-defect {
315 uses odu-defect-pac;
316 description "none";
317 }
318 description "none";
319 }
320 grouping odu-mip-pac {
321 leaf acti {
322 type string;
323 config false;
324 description "The Trail Trace Identifier (TTI) information recovered (Accepted) from the TTI overhead position at the sink of a trail.";
325 }
326 leaf ex-dapi {
327 type string;
328 description "The Expected Destination Access Point Identifier (ExDAPI), provisioned by the managing system, to be compared with the TTI accepted at the overhead position of the sink for the purpose of checking the integrity of connectivity.";
329 }
330 leaf ex-sapi {
331 type string;
332 description "The Expected Source Access Point Identifier (ExSAPI), provisioned by the managing system, to be compared with the TTI accepted at the overhead position of the sink for the purpose of checking the integrity of connectivity.
333 ";
334 }
335 leaf tim-act-disabled {
336 type boolean;
337 default "true";
338 description "This attribute provides the control capability for the managing system to enable or disable the Consequent Action function when detecting Trace Identifier Mismatch (TIM) at the trail termination sink.";
339 }
340 leaf tim-det-mode {
341 type tim-det-mo;
342 description "This attribute indicates the mode of the Trace Identifier Mismatch (TIM) Detection function allowed values: OFF, SAPIonly, DAPIonly, SAPIandDAPI";
343 }
344 leaf deg-m {
345 type uint64;
346 description "This attribute indicates the threshold level for declaring a Degraded Signal defect (dDEG). A dDEG shall be declared if DegM consecutive bad PM Seconds are detected.";
347 }
348 container deg-thr {
349 uses deg-thr;
350 description "This attribute indicates the threshold level for declaring a performance monitoring (PM) Second to be bad. The value of the threshold can be provisioned in terms of number of errored blocks or in terms of percentage of errored blocks. For percentage-based specification, in order to support provision of less than 1%, the specification consists of two fields. The first field indicates the granularity of percentage. For examples, in 1%, in 0.1%, or in 0.01%, etc. The second field indicates the multiple of the granularity. For number of errored block based, the value is a positive integer.";
351 }
352 description "none";
353 }
354 grouping odu-tcm-mip-pac {
355 leaf tcm-field {
356 type uint64;
357 config false;
358 description "This attribute indicates the tandem connection monitoring field of the ODU OH.";
359 }
360 description "none";
361 }
362 grouping odu-mep-pac {
363 leaf dm-source {
364 type boolean;
365 description "This attribute is for configuring the delay measurement process at the trail termination function represented by the subject TTP object class. It models the MI_DM_Source MI signal. If MI_DM_Source is false, then the value of the DMp bit is determined by the RI_DM. If MI_DM_Source is true, then the value of the DMp bit is set to MI_DMValue.";
366 }
367 leaf dm-value {
368 type boolean;
369 description "This attribute is for setting the DMp and DMti bits of the delay measurement process. The value of 'true' sets the DMp and DMti bits to 0 and the value of 'false' to 1.";
370 }
371 leaf txti {
372 type string;
373 description "The Trail Trace Identifier (TTI) information, provisioned by the managing system at the termination source, to be placed in the TTI overhead position of the source of a trail for transmission.
374 ";
375 }
376 uses odu-mip-pac;
377 description "none";
378 }
379 grouping odu-common-pac {
380 leaf odu-type {
381 type odu-type;
382 config false;
383 description "This attribute specifies the type of the ODU termination point.";
384 }
385 leaf odu-rate {
386 type uint64;
387 config false;
388 description "This attribute indicates the rate of the ODU terminatino point.
389 This attribute is Set at create; i.e., once created it cannot be changed directly.
390 In case of resizable ODU flex, its value can be changed via HAO (not directly on the attribute).
391 ";
392 }
393 leaf odu-rate-tolerance {
394 type uint64;
395 config false;
396 description "This attribute indicates the rate tolerance of the ODU termination point.
397 Valid values are real value in the unit of ppm.
398 Standardized values are defined in Table 7-2/G.709.";
399 }
400 description "none";
401 }
402 grouping odu-pm-pac {
403 leaf n-bbe {
404 type uint64;
405 description "Near-end Background Block Error";
406 }
407 leaf f-bbe {
408 type uint64;
409 config false;
410 description "Far-end Background Block Error";
411 }
412 leaf n-ses {
413 type uint64;
414 description "Near-end Severely Errored Second";
415 }
416 leaf f-ses {
417 type uint64;
418 description "Far-end Severely Errored Second";
419 }
420 container uas {
421 uses uas-choice;
422 description "UnAvailable Second";
423 }
424 description "Instance of this object class contains the ODUP layer-specific Current Data. This object class is a subclass of the OTN_CurrentData object class.
425 PM data attributes: fBbe, fSes, nBbe, nSes. uas";
426 }
427 grouping odu-defect-pac {
428 leaf bdi {
429 type boolean;
430 config false;
431 description "Backward Defect Indication";
432 }
433 leaf deg {
434 type boolean;
435 config false;
436 description "Signal Degraded";
437 }
438 leaf lck {
439 type boolean;
440 config false;
441 description "Locked";
442 }
443 leaf oci {
444 type boolean;
445 config false;
446 description "Open Connection Indicator";
447 }
448 leaf ssf {
449 type boolean;
450 config false;
451 description "Server Signal Failure";
452 }
453 leaf tim {
454 type boolean;
455 config false;
456 description "Trail Trace Identifier Mismatch";
457 }
458 description "The valid list of defects raised on the entity. If the value of any attribute is true, then the corresponding defect is raised.";
459 }
Toru Furusawa28988892017-10-30 17:28:40 -0700460
Ai Hamano06163902018-12-06 09:18:20 +0900461 /**************************
Toru Furusawa28988892017-10-30 17:28:40 -0700462 * package type-definitions
Ai Hamano06163902018-12-06 09:18:20 +0900463 **************************/
464 identity ODU_TYPE {
465 base tapi-common:LAYER_PROTOCOL_QUALIFIER;
466 description "none";
467 }
468 identity ODU_TYPE_ODU0 {
469 base ODU_TYPE;
470 description "none";
471 }
472 identity ODU_TYPE_ODU1 {
473 base ODU_TYPE;
474 description "none";
475 }
476 identity ODU_TYPE_ODU2 {
477 base ODU_TYPE;
478 description "none";
479 }
480 identity ODU_TYPE_ODU2E {
481 base ODU_TYPE;
482 description "none";
483 }
484 identity ODU_TYPE_ODU3 {
485 base ODU_TYPE;
486 description "none";
487 }
488 identity ODU_TYPE_ODU4 {
489 base ODU_TYPE;
490 description "none";
491 }
492 identity ODU_TYPE_ODU_FLEX {
493 base ODU_TYPE;
494 description "none";
495 }
496 identity ODU_TYPE_ODU_CN {
497 base ODU_TYPE;
498 description "none";
499 }
500 typedef odu-type {
501 type identityref {
hirokid8fd7862018-10-09 15:24:24 +0900502 base ODU_TYPE;
hirokid8fd7862018-10-09 15:24:24 +0900503 }
Ai Hamano06163902018-12-06 09:18:20 +0900504 description "none";
505 }
506 typedef mapping-type {
507 type enumeration {
508 enum AMP {
Toru Furusawa28988892017-10-30 17:28:40 -0700509 description "none";
510 }
Ai Hamano06163902018-12-06 09:18:20 +0900511 enum BMP {
Toru Furusawa28988892017-10-30 17:28:40 -0700512 description "none";
513 }
Ai Hamano06163902018-12-06 09:18:20 +0900514 enum GFP-F {
515 description "none";
516 }
517 enum GMP {
518 description "none";
519 }
520 enum TTP_GFP_BMP {
521 description "none";
522 }
523 enum NULL {
524 description "none";
525 }
526 }
527 description "none";
528 }
529 typedef tim-det-mo {
530 type enumeration {
531 enum DAPI {
532 description "none";
533 }
534 enum SAPI {
535 description "none";
536 }
537 enum BOTH {
538 description "none";
539 }
540 enum OFF {
541 description "none";
542 }
543 }
544 description "List of modes for trace identifier mismatch detection.";
545 }
546 typedef odu-slot-size {
547 type enumeration {
548 enum 1G25 {
549 description "none";
550 }
551 enum 2G5 {
552 description "none";
553 }
554 }
555 description "none";
556 }
557 grouping odu-payload-type {
558 leaf named-payload-type {
559 type odu-named-payload-type;
Toru Furusawa28988892017-10-30 17:28:40 -0700560 description "none";
561 }
Ai Hamano06163902018-12-06 09:18:20 +0900562 leaf hex-payload-type {
563 type uint64;
Toru Furusawa28988892017-10-30 17:28:40 -0700564 description "none";
565 }
Ai Hamano06163902018-12-06 09:18:20 +0900566 description "none";
567 }
568 typedef odu-named-payload-type {
569 type enumeration {
570 enum UNKNOWN {
Toru Furusawa28988892017-10-30 17:28:40 -0700571 description "none";
572 }
Ai Hamano06163902018-12-06 09:18:20 +0900573 enum UNINTERPRETABLE {
574 description "none";
Toru Furusawa28988892017-10-30 17:28:40 -0700575 }
Toru Furusawa28988892017-10-30 17:28:40 -0700576 }
Ai Hamano06163902018-12-06 09:18:20 +0900577 description "none";
578 }
579 grouping deg-thr {
580 leaf deg-thr-value {
581 type uint64;
582 description "Percentage of detected errored blocks";
Toru Furusawa28988892017-10-30 17:28:40 -0700583 }
Ai Hamano06163902018-12-06 09:18:20 +0900584 leaf deg-thr-type {
585 type deg-thr-type;
586 description "Number of errored blocks";
Toru Furusawa28988892017-10-30 17:28:40 -0700587 }
Ai Hamano06163902018-12-06 09:18:20 +0900588 leaf percentage-granularity {
589 type percentage-granularity;
Toru Furusawa28988892017-10-30 17:28:40 -0700590 description "none";
591 }
Ai Hamano06163902018-12-06 09:18:20 +0900592 description "Degraded Threshold, specify either the percentage or the number of Errored Blocks in the defined interval.
593 degThrValue when type is PERCENTAGE:
594 percentageGranularity is used to indicate the number of decimal points
595 So if percentageGranularity is ones, a value of 1 in degThrValue would indicate 1%, a value of 10 = 10%, a value of 100 = 100%
596 So if percentageGranularity is thousandths a value of 1 in degThrValue would indicate 0.001%, a value of 1000 = 1%, a value of 1000000 = 100%
597 degThrValue when type is NUMBER_ERROR_BLOCKS:
598 Number of Errored Blocks is captured in an integer value.";
599 }
600 typedef deg-thr-type {
601 type enumeration {
602 enum PERCENTAGE {
603 description "Choice of % or Number of errored blocks";
Toru Furusawa28988892017-10-30 17:28:40 -0700604 }
Ai Hamano06163902018-12-06 09:18:20 +0900605 enum NUMBER_ERRORED_BLOCKS {
606 description "Number of % or blocks";
607 }
608 }
609 description "The value of the threshold can be provisioned in terms of number of errored blocks or in terms of percentage of errored blocks. For percentage-based specification, in order to support provision of less than 1%, the specification consists of two fields. The first field indicates the granularity of percentage. For examples, in 1%, in 0.1%, or in 0.01%, etc. The second field indicates the multiple of the granularity. For number of errored block based, the value is a positive integer.";
610 }
611 typedef tcm-status {
612 type enumeration {
613 enum NO_SOURCE_TC {
614 description "TCM byte 3 (bits 6 7 8) -- 0 0 0, No source Tandem Connection";
615 }
616 enum IN_USE_WITHOUT_IAE {
617 description "TCM byte 3 (bits 6 7 8) -- 0 0 1, In use without IAE (Incoming Alignment Error)";
618 }
619 enum IN_USE_WITH_IAE {
620 description "TCM byte 3 (bits 6 7 8) -- 0 1 0, In use with IAE (Incoming Alignment Error)";
621 }
622 enum RESERVED_1 {
623 description "TCM byte 3 (bits 6 7 8) -- 0 1 1, Reserved for future international standardization";
624 }
625 enum RESERVED_2 {
626 description "TCM byte 3 (bits 6 7 8) -- 1 0 0, Reserved for future international standardization";
627 }
628 enum LCK {
629 description "TCM byte 3 (bits 6 7 8) -- 1 0 1, Maintenance signal: ODU-LCK";
630 }
631 enum OCI {
632 description "TCM byte 3 (bits 6 7 8) -- 1 1 0, Maintenance signal: ODU-OCI";
633 }
634 enum AIS {
635 description "TCM byte 3 (bits 6 7 8) -- 1 1 1, Maintenance signal: ODU-AIS";
636 }
637 }
638 description "See Table 15-5/G.709/Y.1331 ";
639 }
640 typedef tcm-mode {
641 type enumeration {
642 enum OPERATIONAL {
643 description "none";
644 }
645 enum TRANSPARENT {
646 description "none";
647 }
648 enum MONITOR {
649 description "none";
650 }
651 }
652 description "List of value modes for the sink side of the tandem connection monitoring function.";
653 }
654 typedef tcm-monitoring {
655 type enumeration {
656 enum INTRUSIVE {
657 description "none";
658 }
659 enum NON-INTRUSIVE {
660 description "none";
661 }
662 }
663 description "Monitoring types for the tandem connection monitoring function.";
664 }
665 typedef tcm-extension {
666 type enumeration {
667 enum NORMAL {
668 description "none";
669 }
670 enum PASS-THROUGH {
671 description "none";
672 }
673 enum ERASE {
674 description "none";
675 }
676 }
677 description "none";
678 }
679 typedef percentage-granularity {
680 type enumeration {
681 enum ONES {
682 description "none";
683 }
684 enum ONE_TENTHS {
685 description "value * (1/10)";
686 }
687 enum ONE_HUNDREDTHS {
688 description "value * (1/100)";
689 }
690 enum ONE_THOUSANDTHS {
691 description "value * (1/1000)";
692 }
693 }
694 description "none";
695 }
696 grouping uas-choice {
697 leaf bidirectional {
698 type boolean;
699 default "true";
Toru Furusawa28988892017-10-30 17:28:40 -0700700 description "none";
701 }
Ai Hamano06163902018-12-06 09:18:20 +0900702 leaf uas {
703 type uint64;
704 description "none";
Toru Furusawa28988892017-10-30 17:28:40 -0700705 }
Ai Hamano06163902018-12-06 09:18:20 +0900706 leaf nuas {
707 type uint64;
708 description "none";
709 }
710 leaf fuas {
711 type uint64;
712 description "none";
713 }
714 description "If bidirectional is TRUE then use the uas attribute, if bidirectional is FALSE use the nuas, and fuas attributes";
715 }
Toru Furusawa28988892017-10-30 17:28:40 -0700716}