blob: 68d5dea8bad04368d4451aac765765fddc32f9bd [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
28 Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.
29 License: This module is distributed under the Apache License 2.0";
hirokid8fd7862018-10-09 15:24:24 +090030 revision 2018-10-16 {
31 description "ONF Transport API version 2.1.0.
32 - The TAPI YANG models included in this TAPI release (v2.1.0) are a *normative* part of the TAPI SDK.
33 - The YANG specifications have been generated from the corresponding UML model using the [ONF EAGLE UML2YANG mapping tool]
34 <https://github.com/OpenNetworkingFoundation/EagleUmlYang>
35 and further edited manually to comply with the [ONF IISOMI UML2YANG mapping guidelines]
36 <https://wiki.opennetworking.org/display/OIMT/UML+-+YANG+Guidelines>
37 - Status of YANG model artifacts can be determined by referring to the corresponding UML artifacts.
38 As described in the UML models, some artifacts are considered *experimental*, and thus the corresponding YANG artifacts.
39 - The ONF TAPI release process does not guarantee backward compatibility of YANG models across major versions of TAPI releases.
40 The YANG model backward compatibility criteria are outlined in section 11 of <https://tools.ietf.org/html/rfc7950>.
41 YANG models included in this release are not backward compatible with previous TAPI releases.
42 - Changes included in this TAPI release (v2.1.0) are listed in
43 <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.1.0.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 }
Yuta HIGUCHI7f165b12018-03-25 19:05:29 -070047 revision 2018-03-07 {
hirokid8fd7862018-10-09 15:24:24 +090048 description "ONF Transport API version 2.0.2
49 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 -070050 Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md>";
hirokid8fd7862018-10-09 15:24:24 +090051 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 -070052 <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML>";
53 }
54 revision 2018-02-16 {
hirokid8fd7862018-10-09 15:24:24 +090055 description "ONF Transport API version 2.0.1
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.1.md>";
hirokid8fd7862018-10-09 15:24:24 +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.1/UML>";
60 }
61 revision 2018-01-02 {
hirokid8fd7862018-10-09 15:24:24 +090062 description "ONF Transport API version 2.0.0
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.0.md>";
hirokid8fd7862018-10-09 15:24:24 +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.0/UML>";
Toru Furusawa28988892017-10-30 17:28:40 -070067 }
hirokid8fd7862018-10-09 15:24:24 +090068 augment "/tapi-common:context/tapi-topology:topology-context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point" {
69 container odu-node-edge-point-spec {
70 uses odu-node-edge-point-spec;
71 description "Augments the base LayerProtocol information in NodeEdgePoint with ODU-specific information";
72 }
Toru Furusawa28988892017-10-30 17:28:40 -070073 description "Augments the base LayerProtocol information in NodeEdgePoint with ODU-specific information";
74 }
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/tapi-connectivity:cep-list/tapi-connectivity:connection-end-point" {
76 container odu-connection-end-point-spec {
77 uses odu-connection-end-point-spec;
78 description "none";
79 }
Toru Furusawa28988892017-10-30 17:28:40 -070080 description "none";
81 }
hirokid8fd7862018-10-09 15:24:24 +090082 augment "/tapi-common:context/tapi-oam:oam-context/tapi-oam:meg/tapi-oam:mep" {
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:mip" {
90 container odu-mip-spec {
91 uses odu-mip-spec;
92 description "none";
93 }
Toru Furusawa28988892017-10-30 17:28:40 -070094 description "none";
95 }
96 /***********************
97 * package object-classes
98 **********************/
99 grouping odu-termination-and-client-adaptation-pac {
100 leaf opu-tributary-slot-size {
101 type odu-slot-size;
102 config false;
103 description "This attribute is applicable for ODU2 and ODU3 CTP only. It indicates the slot size of the ODU CTP.";
104 }
105 leaf auto-payload-type {
106 type boolean;
107 config false;
108 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. ";
109 }
110 leaf configured-client-type {
hirokid8fd7862018-10-09 15:24:24 +0900111 type tapi-dsr:digital-signal-type;
Toru Furusawa28988892017-10-30 17:28:40 -0700112 config false;
113 description "This attribute configures the type of the client CTP of the server ODU TTP.";
114 }
115 leaf configured-mapping-type {
116 type mapping-type;
117 config false;
118 description "This attributes indicates the configured mapping type.";
119 }
120 container accepted-payload-type {
121 config false;
122 uses odu-payload-type;
123 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.
124 This attribute is a 2-digit Hex code that indicates the new accepted payload type.
125 Valid values are defined in Table 15-8 of ITU-T Recommendation G.709 with one additional value UN_INTERPRETABLE.";
126 }
127 description "This Pac contains the attributes associated with the client adaptation function of the server layer TTP
128 It is present only if the CEP contains a TTP";
129 }
130 grouping odu-connection-end-point-spec {
Yuta HIGUCHI80d0bbd2018-02-28 11:13:11 -0800131 container odu-common {
132 uses odu-common-pac;
133 description "none";
134 }
135 container odu-term-and-adapter {
136 config false;
137 uses odu-termination-and-client-adaptation-pac;
138 description "none";
139 }
140 container odu-ctp {
141 config false;
142 uses odu-ctp-pac;
143 description "none";
144 }
145 container odu-protection {
146 config false;
147 uses odu-protection-pac;
148 description "none";
149 }
Toru Furusawa28988892017-10-30 17:28:40 -0700150 description "none";
151 }
152 grouping odu-pool-pac {
153 leaf client-capacity {
154 type uint64;
155 description "none";
156 }
157 leaf max-client-instances {
158 type uint64;
159 config false;
160 description "none";
161 }
162 leaf max-client-size {
163 type uint64;
164 config false;
165 description "none";
166 }
167 description "none";
168 }
169 grouping odu-node-edge-point-spec {
Yuta HIGUCHI80d0bbd2018-02-28 11:13:11 -0800170 container odu-pool {
171 config false;
172 uses odu-pool-pac;
173 description "none";
174 }
Toru Furusawa28988892017-10-30 17:28:40 -0700175 description "none";
176 }
177 grouping odu-ctp-pac {
178 leaf-list tributary-slot-list {
179 type uint64;
180 config false;
181 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).
182 This attribute applies when the LO ODU_ ConnectionTerminationPoint connects with an HO ODU_TrailTerminationPoint object.
183 It will not apply if this ODU_ ConnectionTerminationPoint object directly connects to an OTU_TrailTerminationPoint object (i.e. OTU has no trib slots).
184 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).
185 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).";
186 }
187 leaf tributary-port-number {
188 type uint64;
189 config false;
190 description "This attribute identifies the tributary port number that is associated with the ODU CTP.
191 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.
192 In case of ODUk mapping into OTUk, there is no TPN field, so the tributaryPortNumber shall be zero.
193 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.
194 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.
195 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.
196 ";
197 }
Yuta HIGUCHI80d0bbd2018-02-28 11:13:11 -0800198 leaf accepted-msi {
Toru Furusawa28988892017-10-30 17:28:40 -0700199 type string;
200 config false;
201 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. ";
202 }
203 description "This Pac contains the attributes associated with the CTP
204 It is present only if the CEP contains a CTP";
205 }
206 grouping odu-mep-spec {
Yuta HIGUCHI80d0bbd2018-02-28 11:13:11 -0800207 container odu-mep {
208 uses odu-mep-pac;
209 description "none";
210 }
211 container odu-ncm {
212 config false;
213 uses odu-ncm-pac;
214 description "none";
215 }
216 container odu-tcm {
217 config false;
218 uses odu-tcm-mep-pac;
219 description "none";
220 }
221 container odu-defect {
222 uses odu-defect-pac;
223 description "none";
224 }
225 container odu-pm {
226 uses odu-pm-pac;
227 description "none";
228 }
Toru Furusawa28988892017-10-30 17:28:40 -0700229 description "none";
230 }
231 grouping odu-protection-pac {
232 leaf aps-enable {
233 type boolean;
234 default "true";
235 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.";
236 }
237 leaf aps-level {
238 type uint64;
239 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.";
240 }
241 description "none";
242 }
243 grouping odu-ncm-pac {
244 leaf-list tcm-fields-in-use {
245 type uint64;
246 config false;
247 description "This attribute indicates the used TCM fields of the ODU OH.";
248 }
249 description "none";
250 }
251 grouping odu-tcm-mep-pac {
252 leaf tcm-extension {
253 type tcm-extension;
254 description "none";
255 }
256 leaf tcm-mode {
257 type tcm-mode;
258 description "This attribute specifies the TCM mode at the entity. Valid values are: Operational, Monitor, and Transparent.";
259 }
260 leaf codirectional {
261 type boolean;
262 config false;
263 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.";
264 }
265 leaf ac-status-source {
266 type tcm-status;
267 config false;
268 description "This attribute indicates the status of the accepted TCM. ";
269 }
270 leaf ac-status-sink {
271 type tcm-status;
272 config false;
273 description "This attribute indicates the status of the accepted TCM. ";
274 }
275 leaf admin-state-source {
276 type tapi-common:administrative-state;
277 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.";
278 }
279 leaf admin-state-sink {
280 type tapi-common:administrative-state;
281 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.";
282 }
283 uses odu-tcm-mip-pac;
284 description "none";
285 }
286 grouping odu-mip-spec {
Yuta HIGUCHI80d0bbd2018-02-28 11:13:11 -0800287 container odu-mip {
288 config false;
289 uses odu-mip-pac;
290 description "none";
291 }
292 container odu-ncm {
293 config false;
294 uses odu-ncm-pac;
295 description "none";
296 }
297 container odu-tcm {
298 config false;
299 uses odu-tcm-mip-pac;
300 description "none";
301 }
302 container odu-pm {
303 uses odu-pm-pac;
304 description "none";
305 }
306 container odu-defect {
307 uses odu-defect-pac;
308 description "none";
309 }
Toru Furusawa28988892017-10-30 17:28:40 -0700310 description "none";
311 }
312 grouping odu-mip-pac {
313 leaf acti {
314 type string;
315 config false;
316 description "The Trail Trace Identifier (TTI) information recovered (Accepted) from the TTI overhead position at the sink of a trail.";
317 }
318 leaf ex-dapi {
319 type string;
320 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.";
321 }
322 leaf ex-sapi {
323 type string;
324 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.
325 ";
326 }
327 leaf tim-act-disabled {
328 type boolean;
329 default "true";
330 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.";
331 }
332 leaf tim-det-mode {
333 type tim-det-mo;
334 description "This attribute indicates the mode of the Trace Identifier Mismatch (TIM) Detection function allowed values: OFF, SAPIonly, DAPIonly, SAPIandDAPI";
335 }
336 leaf deg-m {
337 type uint64;
338 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.";
339 }
340 container deg-thr {
341 uses deg-thr;
342 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.";
343 }
344 description "none";
345 }
346 grouping odu-tcm-mip-pac {
347 leaf tcm-field {
348 type uint64;
349 config false;
350 description "This attribute indicates the tandem connection monitoring field of the ODU OH.";
351 }
352 description "none";
353 }
354 grouping odu-mep-pac {
355 leaf dm-source {
356 type boolean;
357 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.";
358 }
359 leaf dm-value {
360 type boolean;
361 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.";
362 }
363 leaf txti {
364 type string;
365 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.
366 ";
367 }
368 uses odu-mip-pac;
369 description "none";
370 }
371 grouping odu-common-pac {
372 leaf odu-type {
373 type odu-type;
374 config false;
375 description "This attribute specifies the type of the ODU termination point.";
376 }
377 leaf odu-rate {
378 type uint64;
379 config false;
380 description "This attribute indicates the rate of the ODU terminatino point.
381 This attribute is Set at create; i.e., once created it cannot be changed directly.
382 In case of resizable ODU flex, its value can be changed via HAO (not directly on the attribute).
383 ";
384 }
385 leaf odu-rate-tolerance {
386 type uint64;
387 config false;
388 description "This attribute indicates the rate tolerance of the ODU termination point.
389 Valid values are real value in the unit of ppm.
390 Standardized values are defined in Table 7-2/G.709.";
391 }
392 description "none";
393 }
394 grouping odu-pm-pac {
395 leaf n-bbe {
396 type uint64;
397 description "Near-end Background Block Error";
398 }
399 leaf f-bbe {
400 type uint64;
401 config false;
402 description "Far-end Background Block Error";
403 }
404 leaf n-ses {
405 type uint64;
406 description "Near-end Severely Errored Second";
407 }
408 leaf f-ses {
409 type uint64;
410 description "Far-end Severely Errored Second";
411 }
412 container uas {
413 uses uas-choice;
414 description "UnAvailable Second";
415 }
416 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.
417 PM data attributes: fBbe, fSes, nBbe, nSes. uas";
418 }
419 grouping odu-defect-pac {
420 leaf bdi {
421 type boolean;
422 config false;
423 description "Backward Defect Indication";
424 }
425 leaf deg {
426 type boolean;
427 config false;
428 description "Signal Degraded";
429 }
430 leaf lck {
431 type boolean;
432 config false;
433 description "Locked";
434 }
435 leaf oci {
436 type boolean;
437 config false;
438 description "Open Connection Indicator";
439 }
440 leaf ssf {
441 type boolean;
442 config false;
443 description "Server Signal Failure";
444 }
445 leaf tim {
446 type boolean;
447 config false;
448 description "Trail Trace Identifier Mismatch";
449 }
450 description "The valid list of defects raised on the entity. If the value of any attribute is true, then the corresponding defect is raised.";
451 }
Toru Furusawa28988892017-10-30 17:28:40 -0700452
453 /***********************
454 * package type-definitions
455 **********************/
hirokid8fd7862018-10-09 15:24:24 +0900456 identity ODU_TYPE {
457 base tapi-common:LAYER_PROTOCOL_QUALIFIER;
458 description "none";
459 }
460 identity ODU_TYPE_ODU0 {
461 base ODU_TYPE;
462 description "none";
463 }
464 identity ODU_TYPE_ODU1 {
465 base ODU_TYPE;
466 description "none";
467 }
468 identity ODU_TYPE_ODU2 {
469 base ODU_TYPE;
470 description "none";
471 }
472 identity ODU_TYPE_ODU2E {
473 base ODU_TYPE;
474 description "none";
475 }
476 identity ODU_TYPE_ODU3 {
477 base ODU_TYPE;
478 description "none";
479 }
480 identity ODU_TYPE_ODU4 {
481 base ODU_TYPE;
482 description "none";
483 }
484 identity ODU_TYPE_ODU_FLEX {
485 base ODU_TYPE;
486 description "none";
487 }
488 identity ODU_TYPE_ODU_CN {
489 base ODU_TYPE;
490 description "none";
491 }
Toru Furusawa28988892017-10-30 17:28:40 -0700492 typedef odu-type {
hirokid8fd7862018-10-09 15:24:24 +0900493 type identityref {
494 base ODU_TYPE;
Toru Furusawa28988892017-10-30 17:28:40 -0700495 }
496 description "none";
497 }
498 typedef mapping-type {
499 type enumeration {
wu6a418d22018-02-02 01:49:21 -0500500 enum AMP {
Toru Furusawa28988892017-10-30 17:28:40 -0700501 description "none";
502 }
wu6a418d22018-02-02 01:49:21 -0500503 enum BMP {
Toru Furusawa28988892017-10-30 17:28:40 -0700504 description "none";
505 }
wu6a418d22018-02-02 01:49:21 -0500506 enum GFP-F {
Toru Furusawa28988892017-10-30 17:28:40 -0700507 description "none";
508 }
wu6a418d22018-02-02 01:49:21 -0500509 enum GMP {
Toru Furusawa28988892017-10-30 17:28:40 -0700510 description "none";
511 }
wu6a418d22018-02-02 01:49:21 -0500512 enum TTP_GFP_BMP {
Toru Furusawa28988892017-10-30 17:28:40 -0700513 description "none";
514 }
wu6a418d22018-02-02 01:49:21 -0500515 enum NULL {
Toru Furusawa28988892017-10-30 17:28:40 -0700516 description "none";
517 }
518 }
519 description "none";
520 }
521 typedef tim-det-mo {
522 type enumeration {
wu6a418d22018-02-02 01:49:21 -0500523 enum DAPI {
Toru Furusawa28988892017-10-30 17:28:40 -0700524 description "none";
525 }
wu6a418d22018-02-02 01:49:21 -0500526 enum SAPI {
Toru Furusawa28988892017-10-30 17:28:40 -0700527 description "none";
528 }
wu6a418d22018-02-02 01:49:21 -0500529 enum BOTH {
Toru Furusawa28988892017-10-30 17:28:40 -0700530 description "none";
531 }
wu6a418d22018-02-02 01:49:21 -0500532 enum OFF {
Toru Furusawa28988892017-10-30 17:28:40 -0700533 description "none";
534 }
535 }
536 description "List of modes for trace identifier mismatch detection.";
537 }
538 typedef odu-slot-size {
539 type enumeration {
wu6a418d22018-02-02 01:49:21 -0500540 enum 1G25 {
Toru Furusawa28988892017-10-30 17:28:40 -0700541 description "none";
542 }
wu6a418d22018-02-02 01:49:21 -0500543 enum 2G5 {
Toru Furusawa28988892017-10-30 17:28:40 -0700544 description "none";
545 }
546 }
547 description "none";
548 }
549 grouping odu-payload-type {
550 leaf named-payload-type {
551 type odu-named-payload-type;
552 description "none";
553 }
554 leaf hex-payload-type {
555 type uint64;
556 description "none";
557 }
558 description "none";
559 }
560 typedef odu-named-payload-type {
561 type enumeration {
wu6a418d22018-02-02 01:49:21 -0500562 enum UNKNOWN {
Toru Furusawa28988892017-10-30 17:28:40 -0700563 description "none";
564 }
wu6a418d22018-02-02 01:49:21 -0500565 enum UNINTERPRETABLE {
Toru Furusawa28988892017-10-30 17:28:40 -0700566 description "none";
567 }
568 }
569 description "none";
570 }
571 grouping deg-thr {
572 leaf deg-thr-value {
573 type uint64;
574 description "Percentage of detected errored blocks";
575 }
576 leaf deg-thr-type {
577 type deg-thr-type;
578 description "Number of errored blocks";
579 }
580 leaf percentage-granularity {
581 type percentage-granularity;
582 description "none";
583 }
584 description "Degraded Threshold, specify either the percentage or the number of Errored Blocks in the defined interval.
585 degThrValue when type is PERCENTAGE:
586 percentageGranularity is used to indicate the number of decimal points
587 So if percentageGranularity is ones, a value of 1 in degThrValue would indicate 1%, a value of 10 = 10%, a value of 100 = 100%
588 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%
589 degThrValue when type is NUMBER_ERROR_BLOCKS:
590 Number of Errored Blocks is captured in an integer value.";
591 }
592 typedef deg-thr-type {
wu6a418d22018-02-02 01:49:21 -0500593 type enumeration {
594 enum PERCENTAGE {
595 description "Choice of % or Number of errored blocks";
596 }
597 enum NUMBER_ERRORED_BLOCKS {
598 description "Number of % or blocks";
599 }
Toru Furusawa28988892017-10-30 17:28:40 -0700600 }
601 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.";
602 }
603 typedef tcm-status {
wu6a418d22018-02-02 01:49:21 -0500604 type enumeration {
605 enum NO_SOURCE_TC {
606 description "TCM byte 3 (bits 6 7 8) -- 0 0 0, No source Tandem Connection";
607 }
608 enum IN_USE_WITHOUT_IAE {
609 description "TCM byte 3 (bits 6 7 8) -- 0 0 1, In use without IAE (Incoming Alignment Error)";
610 }
611 enum IN_USE_WITH_IAE {
612 description "TCM byte 3 (bits 6 7 8) -- 0 1 0, In use with IAE (Incoming Alignment Error)";
613 }
614 enum RESERVED_1 {
615 description "TCM byte 3 (bits 6 7 8) -- 0 1 1, Reserved for future international standardization";
616 }
617 enum RESERVED_2 {
618 description "TCM byte 3 (bits 6 7 8) -- 1 0 0, Reserved for future international standardization";
619 }
620 enum LCK {
621 description "TCM byte 3 (bits 6 7 8) -- 1 0 1, Maintenance signal: ODU-LCK";
622 }
623 enum OCI {
624 description "TCM byte 3 (bits 6 7 8) -- 1 1 0, Maintenance signal: ODU-OCI";
625 }
626 enum AIS {
627 description "TCM byte 3 (bits 6 7 8) -- 1 1 1, Maintenance signal: ODU-AIS";
628 }
Toru Furusawa28988892017-10-30 17:28:40 -0700629 }
630 description "See Table 15-5/G.709/Y.1331 ";
631 }
632 typedef tcm-mode {
wu6a418d22018-02-02 01:49:21 -0500633 type enumeration {
634 enum OPERATIONAL {
635 description "none";
636 }
637 enum TRANSPARENT {
638 description "none";
639 }
640 enum MONITOR {
641 description "none";
642 }
Toru Furusawa28988892017-10-30 17:28:40 -0700643 }
644 description "List of value modes for the sink side of the tandem connection monitoring function.";
645 }
646 typedef tcm-monitoring {
wu6a418d22018-02-02 01:49:21 -0500647 type enumeration {
648 enum INTRUSIVE {
649 description "none";
650 }
651 enum NON-INTRUSIVE {
652 description "none";
653 }
Toru Furusawa28988892017-10-30 17:28:40 -0700654 }
655 description "Monitoring types for the tandem connection monitoring function.";
656 }
657 typedef tcm-extension {
wu6a418d22018-02-02 01:49:21 -0500658 type enumeration {
659 enum NORMAL {
660 description "none";
661 }
662 enum PASS-THROUGH {
663 description "none";
664 }
665 enum ERASE {
666 description "none";
667 }
Toru Furusawa28988892017-10-30 17:28:40 -0700668 }
669 description "none";
670 }
671 typedef percentage-granularity {
wu6a418d22018-02-02 01:49:21 -0500672 type enumeration {
673 enum ONES {
674 description "none";
675 }
676 enum ONE_TENTHS {
677 description "value * (1/10)";
678 }
679 enum ONE_HUNDREDTHS {
680 description "value * (1/100)";
681 }
682 enum ONE_THOUSANDTHS {
683 description "value * (1/1000)";
684 }
Toru Furusawa28988892017-10-30 17:28:40 -0700685 }
686 description "none";
687 }
688 grouping uas-choice {
689 leaf bidirectional {
690 type boolean;
691 default "true";
692 description "none";
693 }
694 leaf uas {
695 type uint64;
696 description "none";
697 }
698 leaf nuas {
699 type uint64;
700 description "none";
701 }
702 leaf fuas {
703 type uint64;
704 description "none";
705 }
706 description "If bidirectional is TRUE then use the uas attribute, if bidirectional is FALSE use the nuas, and fuas attributes";
707 }
708
709}