blob: dfde5d4e42616fb1b220a8f096b8ee167e934ccc [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 }
Yuta HIGUCHI80d0bbd2018-02-28 11:13:11 -080016 organization "ONF OTCC (Open Transport Configuration & Control) Project";
17 contact "
18 Project Web: <https://wiki.opennetworking.org/display/OTCC/TAPI>
19 Project List: <mailto:transport-api@opennetworking.org>
20 Editor: Karthik Sethuraman
21 <mailto:karthik.sethuraman@necam.com>";
22 description "
23 This module contains TAPI Odu Model definitions.
24 Source: TapiOdu.uml
25 Copyright (c) 2018 Open Networking Foundation (ONF). All rights reserved.
26 License: This module is distributed under the Apache License 2.0";
Yuta HIGUCHI7f165b12018-03-25 19:05:29 -070027 revision 2018-03-07 {
Yuta HIGUCHIe1ca23f2018-04-06 10:05:45 -070028 description "ONF Transport API version 2.0.2
29 This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
30 Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.2.md>";
31 reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
32 <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.2/UML>";
33 }
34 revision 2018-02-16 {
35 description "ONF Transport API version 2.0.1
36 This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
37 Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.1.md>";
38 reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
39 <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.1/UML>";
40 }
41 revision 2018-01-02 {
42 description "ONF Transport API version 2.0.0
43 This YANG module has been generated from the TAPI UML Model using the IISOMI-Eagle xmi2yang mapping tool.
44 Changes in this revision: <https://github.com/OpenNetworkingFoundation/TAPI/blob/develop/CHANGE_LOG/change-log.2.0.0.md>";
45 reference "ONF-TR-527, ONF-TR-512, ONF-TR-531, RFC 6020, RFC 6087 and ONF TAPI UML model
46 <https://github.com/OpenNetworkingFoundation/TAPI/tree/v2.0.0/UML>";
Toru Furusawa28988892017-10-30 17:28:40 -070047 }
48 augment "/tapi-common:context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point" {
49 uses odu-node-edge-point-spec;
50 description "Augments the base LayerProtocol information in NodeEdgePoint with ODU-specific information";
51 }
52 augment "/tapi-common:context/tapi-topology:topology/tapi-topology:node/tapi-topology:owned-node-edge-point/tapi-connectivity:connection-end-point" {
53 uses odu-connection-end-point-spec;
54 description "none";
55 }
56 augment "/tapi-common:context/tapi-oam:meg/tapi-oam:mep" {
57 uses odu-connection-end-point-spec;
58 description "none";
59 }
60 augment "/tapi-common:context/tapi-oam:meg/tapi-oam:mip" {
61 uses odu-mip-spec;
62 description "none";
63 }
64 /***********************
65 * package object-classes
66 **********************/
67 grouping odu-termination-and-client-adaptation-pac {
68 leaf opu-tributary-slot-size {
69 type odu-slot-size;
70 config false;
71 description "This attribute is applicable for ODU2 and ODU3 CTP only. It indicates the slot size of the ODU CTP.";
72 }
73 leaf auto-payload-type {
74 type boolean;
75 config false;
76 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. ";
77 }
78 leaf configured-client-type {
79 type string;
80 config false;
81 description "This attribute configures the type of the client CTP of the server ODU TTP.";
82 }
83 leaf configured-mapping-type {
84 type mapping-type;
85 config false;
86 description "This attributes indicates the configured mapping type.";
87 }
88 container accepted-payload-type {
89 config false;
90 uses odu-payload-type;
91 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.
92 This attribute is a 2-digit Hex code that indicates the new accepted payload type.
93 Valid values are defined in Table 15-8 of ITU-T Recommendation G.709 with one additional value UN_INTERPRETABLE.";
94 }
95 description "This Pac contains the attributes associated with the client adaptation function of the server layer TTP
96 It is present only if the CEP contains a TTP";
97 }
98 grouping odu-connection-end-point-spec {
Yuta HIGUCHI80d0bbd2018-02-28 11:13:11 -080099 container odu-common {
100 uses odu-common-pac;
101 description "none";
102 }
103 container odu-term-and-adapter {
104 config false;
105 uses odu-termination-and-client-adaptation-pac;
106 description "none";
107 }
108 container odu-ctp {
109 config false;
110 uses odu-ctp-pac;
111 description "none";
112 }
113 container odu-protection {
114 config false;
115 uses odu-protection-pac;
116 description "none";
117 }
Toru Furusawa28988892017-10-30 17:28:40 -0700118 description "none";
119 }
120 grouping odu-pool-pac {
121 leaf client-capacity {
122 type uint64;
123 description "none";
124 }
125 leaf max-client-instances {
126 type uint64;
127 config false;
128 description "none";
129 }
130 leaf max-client-size {
131 type uint64;
132 config false;
133 description "none";
134 }
135 description "none";
136 }
137 grouping odu-node-edge-point-spec {
Yuta HIGUCHI80d0bbd2018-02-28 11:13:11 -0800138 container odu-pool {
139 config false;
140 uses odu-pool-pac;
141 description "none";
142 }
Toru Furusawa28988892017-10-30 17:28:40 -0700143 description "none";
144 }
145 grouping odu-ctp-pac {
146 leaf-list tributary-slot-list {
147 type uint64;
148 config false;
149 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).
150 This attribute applies when the LO ODU_ ConnectionTerminationPoint connects with an HO ODU_TrailTerminationPoint object.
151 It will not apply if this ODU_ ConnectionTerminationPoint object directly connects to an OTU_TrailTerminationPoint object (i.e. OTU has no trib slots).
152 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).
153 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).";
154 }
155 leaf tributary-port-number {
156 type uint64;
157 config false;
158 description "This attribute identifies the tributary port number that is associated with the ODU CTP.
159 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.
160 In case of ODUk mapping into OTUk, there is no TPN field, so the tributaryPortNumber shall be zero.
161 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.
162 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.
163 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.
164 ";
165 }
Yuta HIGUCHI80d0bbd2018-02-28 11:13:11 -0800166 leaf accepted-msi {
Toru Furusawa28988892017-10-30 17:28:40 -0700167 type string;
168 config false;
169 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. ";
170 }
171 description "This Pac contains the attributes associated with the CTP
172 It is present only if the CEP contains a CTP";
173 }
174 grouping odu-mep-spec {
Yuta HIGUCHI80d0bbd2018-02-28 11:13:11 -0800175 container odu-mep {
176 uses odu-mep-pac;
177 description "none";
178 }
179 container odu-ncm {
180 config false;
181 uses odu-ncm-pac;
182 description "none";
183 }
184 container odu-tcm {
185 config false;
186 uses odu-tcm-mep-pac;
187 description "none";
188 }
189 container odu-defect {
190 uses odu-defect-pac;
191 description "none";
192 }
193 container odu-pm {
194 uses odu-pm-pac;
195 description "none";
196 }
Toru Furusawa28988892017-10-30 17:28:40 -0700197 description "none";
198 }
199 grouping odu-protection-pac {
200 leaf aps-enable {
201 type boolean;
202 default "true";
203 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.";
204 }
205 leaf aps-level {
206 type uint64;
207 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.";
208 }
209 description "none";
210 }
211 grouping odu-ncm-pac {
212 leaf-list tcm-fields-in-use {
213 type uint64;
214 config false;
215 description "This attribute indicates the used TCM fields of the ODU OH.";
216 }
217 description "none";
218 }
219 grouping odu-tcm-mep-pac {
220 leaf tcm-extension {
221 type tcm-extension;
222 description "none";
223 }
224 leaf tcm-mode {
225 type tcm-mode;
226 description "This attribute specifies the TCM mode at the entity. Valid values are: Operational, Monitor, and Transparent.";
227 }
228 leaf codirectional {
229 type boolean;
230 config false;
231 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.";
232 }
233 leaf ac-status-source {
234 type tcm-status;
235 config false;
236 description "This attribute indicates the status of the accepted TCM. ";
237 }
238 leaf ac-status-sink {
239 type tcm-status;
240 config false;
241 description "This attribute indicates the status of the accepted TCM. ";
242 }
243 leaf admin-state-source {
244 type tapi-common:administrative-state;
245 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.";
246 }
247 leaf admin-state-sink {
248 type tapi-common:administrative-state;
249 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.";
250 }
251 uses odu-tcm-mip-pac;
252 description "none";
253 }
254 grouping odu-mip-spec {
Yuta HIGUCHI80d0bbd2018-02-28 11:13:11 -0800255 container odu-mip {
256 config false;
257 uses odu-mip-pac;
258 description "none";
259 }
260 container odu-ncm {
261 config false;
262 uses odu-ncm-pac;
263 description "none";
264 }
265 container odu-tcm {
266 config false;
267 uses odu-tcm-mip-pac;
268 description "none";
269 }
270 container odu-pm {
271 uses odu-pm-pac;
272 description "none";
273 }
274 container odu-defect {
275 uses odu-defect-pac;
276 description "none";
277 }
Toru Furusawa28988892017-10-30 17:28:40 -0700278 description "none";
279 }
280 grouping odu-mip-pac {
281 leaf acti {
282 type string;
283 config false;
284 description "The Trail Trace Identifier (TTI) information recovered (Accepted) from the TTI overhead position at the sink of a trail.";
285 }
286 leaf ex-dapi {
287 type string;
288 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.";
289 }
290 leaf ex-sapi {
291 type string;
292 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.
293 ";
294 }
295 leaf tim-act-disabled {
296 type boolean;
297 default "true";
298 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.";
299 }
300 leaf tim-det-mode {
301 type tim-det-mo;
302 description "This attribute indicates the mode of the Trace Identifier Mismatch (TIM) Detection function allowed values: OFF, SAPIonly, DAPIonly, SAPIandDAPI";
303 }
304 leaf deg-m {
305 type uint64;
306 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.";
307 }
308 container deg-thr {
309 uses deg-thr;
310 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.";
311 }
312 description "none";
313 }
314 grouping odu-tcm-mip-pac {
315 leaf tcm-field {
316 type uint64;
317 config false;
318 description "This attribute indicates the tandem connection monitoring field of the ODU OH.";
319 }
320 description "none";
321 }
322 grouping odu-mep-pac {
323 leaf dm-source {
324 type boolean;
325 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.";
326 }
327 leaf dm-value {
328 type boolean;
329 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.";
330 }
331 leaf txti {
332 type string;
333 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.
334 ";
335 }
336 uses odu-mip-pac;
337 description "none";
338 }
339 grouping odu-common-pac {
340 leaf odu-type {
341 type odu-type;
342 config false;
343 description "This attribute specifies the type of the ODU termination point.";
344 }
345 leaf odu-rate {
346 type uint64;
347 config false;
348 description "This attribute indicates the rate of the ODU terminatino point.
349 This attribute is Set at create; i.e., once created it cannot be changed directly.
350 In case of resizable ODU flex, its value can be changed via HAO (not directly on the attribute).
351 ";
352 }
353 leaf odu-rate-tolerance {
354 type uint64;
355 config false;
356 description "This attribute indicates the rate tolerance of the ODU termination point.
357 Valid values are real value in the unit of ppm.
358 Standardized values are defined in Table 7-2/G.709.";
359 }
360 description "none";
361 }
362 grouping odu-pm-pac {
363 leaf n-bbe {
364 type uint64;
365 description "Near-end Background Block Error";
366 }
367 leaf f-bbe {
368 type uint64;
369 config false;
370 description "Far-end Background Block Error";
371 }
372 leaf n-ses {
373 type uint64;
374 description "Near-end Severely Errored Second";
375 }
376 leaf f-ses {
377 type uint64;
378 description "Far-end Severely Errored Second";
379 }
380 container uas {
381 uses uas-choice;
382 description "UnAvailable Second";
383 }
384 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.
385 PM data attributes: fBbe, fSes, nBbe, nSes. uas";
386 }
387 grouping odu-defect-pac {
388 leaf bdi {
389 type boolean;
390 config false;
391 description "Backward Defect Indication";
392 }
393 leaf deg {
394 type boolean;
395 config false;
396 description "Signal Degraded";
397 }
398 leaf lck {
399 type boolean;
400 config false;
401 description "Locked";
402 }
403 leaf oci {
404 type boolean;
405 config false;
406 description "Open Connection Indicator";
407 }
408 leaf ssf {
409 type boolean;
410 config false;
411 description "Server Signal Failure";
412 }
413 leaf tim {
414 type boolean;
415 config false;
416 description "Trail Trace Identifier Mismatch";
417 }
418 description "The valid list of defects raised on the entity. If the value of any attribute is true, then the corresponding defect is raised.";
419 }
Toru Furusawa28988892017-10-30 17:28:40 -0700420
421 /***********************
422 * package type-definitions
423 **********************/
Toru Furusawa28988892017-10-30 17:28:40 -0700424 typedef odu-type {
425 type enumeration {
wu6a418d22018-02-02 01:49:21 -0500426 enum ODU0 {
Toru Furusawa28988892017-10-30 17:28:40 -0700427 description "none";
428 }
wu6a418d22018-02-02 01:49:21 -0500429 enum ODU1 {
Toru Furusawa28988892017-10-30 17:28:40 -0700430 description "none";
431 }
wu6a418d22018-02-02 01:49:21 -0500432 enum ODU2 {
Toru Furusawa28988892017-10-30 17:28:40 -0700433 description "none";
434 }
wu6a418d22018-02-02 01:49:21 -0500435 enum ODU2E {
Toru Furusawa28988892017-10-30 17:28:40 -0700436 description "none";
437 }
wu6a418d22018-02-02 01:49:21 -0500438 enum ODU3 {
Toru Furusawa28988892017-10-30 17:28:40 -0700439 description "none";
440 }
wu6a418d22018-02-02 01:49:21 -0500441 enum ODU4 {
Toru Furusawa28988892017-10-30 17:28:40 -0700442 description "none";
443 }
wu6a418d22018-02-02 01:49:21 -0500444 enum ODU_FLEX {
Toru Furusawa28988892017-10-30 17:28:40 -0700445 description "none";
446 }
wu6a418d22018-02-02 01:49:21 -0500447 enum ODU_CN {
Toru Furusawa28988892017-10-30 17:28:40 -0700448 description "none";
449 }
450 }
451 description "none";
452 }
453 typedef mapping-type {
454 type enumeration {
wu6a418d22018-02-02 01:49:21 -0500455 enum AMP {
Toru Furusawa28988892017-10-30 17:28:40 -0700456 description "none";
457 }
wu6a418d22018-02-02 01:49:21 -0500458 enum BMP {
Toru Furusawa28988892017-10-30 17:28:40 -0700459 description "none";
460 }
wu6a418d22018-02-02 01:49:21 -0500461 enum GFP-F {
Toru Furusawa28988892017-10-30 17:28:40 -0700462 description "none";
463 }
wu6a418d22018-02-02 01:49:21 -0500464 enum GMP {
Toru Furusawa28988892017-10-30 17:28:40 -0700465 description "none";
466 }
wu6a418d22018-02-02 01:49:21 -0500467 enum TTP_GFP_BMP {
Toru Furusawa28988892017-10-30 17:28:40 -0700468 description "none";
469 }
wu6a418d22018-02-02 01:49:21 -0500470 enum NULL {
Toru Furusawa28988892017-10-30 17:28:40 -0700471 description "none";
472 }
473 }
474 description "none";
475 }
476 typedef tim-det-mo {
477 type enumeration {
wu6a418d22018-02-02 01:49:21 -0500478 enum DAPI {
Toru Furusawa28988892017-10-30 17:28:40 -0700479 description "none";
480 }
wu6a418d22018-02-02 01:49:21 -0500481 enum SAPI {
Toru Furusawa28988892017-10-30 17:28:40 -0700482 description "none";
483 }
wu6a418d22018-02-02 01:49:21 -0500484 enum BOTH {
Toru Furusawa28988892017-10-30 17:28:40 -0700485 description "none";
486 }
wu6a418d22018-02-02 01:49:21 -0500487 enum OFF {
Toru Furusawa28988892017-10-30 17:28:40 -0700488 description "none";
489 }
490 }
491 description "List of modes for trace identifier mismatch detection.";
492 }
493 typedef odu-slot-size {
494 type enumeration {
wu6a418d22018-02-02 01:49:21 -0500495 enum 1G25 {
Toru Furusawa28988892017-10-30 17:28:40 -0700496 description "none";
497 }
wu6a418d22018-02-02 01:49:21 -0500498 enum 2G5 {
Toru Furusawa28988892017-10-30 17:28:40 -0700499 description "none";
500 }
501 }
502 description "none";
503 }
504 grouping odu-payload-type {
505 leaf named-payload-type {
506 type odu-named-payload-type;
507 description "none";
508 }
509 leaf hex-payload-type {
510 type uint64;
511 description "none";
512 }
513 description "none";
514 }
515 typedef odu-named-payload-type {
516 type enumeration {
wu6a418d22018-02-02 01:49:21 -0500517 enum UNKNOWN {
Toru Furusawa28988892017-10-30 17:28:40 -0700518 description "none";
519 }
wu6a418d22018-02-02 01:49:21 -0500520 enum UNINTERPRETABLE {
Toru Furusawa28988892017-10-30 17:28:40 -0700521 description "none";
522 }
523 }
524 description "none";
525 }
526 grouping deg-thr {
527 leaf deg-thr-value {
528 type uint64;
529 description "Percentage of detected errored blocks";
530 }
531 leaf deg-thr-type {
532 type deg-thr-type;
533 description "Number of errored blocks";
534 }
535 leaf percentage-granularity {
536 type percentage-granularity;
537 description "none";
538 }
539 description "Degraded Threshold, specify either the percentage or the number of Errored Blocks in the defined interval.
540 degThrValue when type is PERCENTAGE:
541 percentageGranularity is used to indicate the number of decimal points
542 So if percentageGranularity is ones, a value of 1 in degThrValue would indicate 1%, a value of 10 = 10%, a value of 100 = 100%
543 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%
544 degThrValue when type is NUMBER_ERROR_BLOCKS:
545 Number of Errored Blocks is captured in an integer value.";
546 }
547 typedef deg-thr-type {
wu6a418d22018-02-02 01:49:21 -0500548 type enumeration {
549 enum PERCENTAGE {
550 description "Choice of % or Number of errored blocks";
551 }
552 enum NUMBER_ERRORED_BLOCKS {
553 description "Number of % or blocks";
554 }
Toru Furusawa28988892017-10-30 17:28:40 -0700555 }
556 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.";
557 }
558 typedef tcm-status {
wu6a418d22018-02-02 01:49:21 -0500559 type enumeration {
560 enum NO_SOURCE_TC {
561 description "TCM byte 3 (bits 6 7 8) -- 0 0 0, No source Tandem Connection";
562 }
563 enum IN_USE_WITHOUT_IAE {
564 description "TCM byte 3 (bits 6 7 8) -- 0 0 1, In use without IAE (Incoming Alignment Error)";
565 }
566 enum IN_USE_WITH_IAE {
567 description "TCM byte 3 (bits 6 7 8) -- 0 1 0, In use with IAE (Incoming Alignment Error)";
568 }
569 enum RESERVED_1 {
570 description "TCM byte 3 (bits 6 7 8) -- 0 1 1, Reserved for future international standardization";
571 }
572 enum RESERVED_2 {
573 description "TCM byte 3 (bits 6 7 8) -- 1 0 0, Reserved for future international standardization";
574 }
575 enum LCK {
576 description "TCM byte 3 (bits 6 7 8) -- 1 0 1, Maintenance signal: ODU-LCK";
577 }
578 enum OCI {
579 description "TCM byte 3 (bits 6 7 8) -- 1 1 0, Maintenance signal: ODU-OCI";
580 }
581 enum AIS {
582 description "TCM byte 3 (bits 6 7 8) -- 1 1 1, Maintenance signal: ODU-AIS";
583 }
Toru Furusawa28988892017-10-30 17:28:40 -0700584 }
585 description "See Table 15-5/G.709/Y.1331 ";
586 }
587 typedef tcm-mode {
wu6a418d22018-02-02 01:49:21 -0500588 type enumeration {
589 enum OPERATIONAL {
590 description "none";
591 }
592 enum TRANSPARENT {
593 description "none";
594 }
595 enum MONITOR {
596 description "none";
597 }
Toru Furusawa28988892017-10-30 17:28:40 -0700598 }
599 description "List of value modes for the sink side of the tandem connection monitoring function.";
600 }
601 typedef tcm-monitoring {
wu6a418d22018-02-02 01:49:21 -0500602 type enumeration {
603 enum INTRUSIVE {
604 description "none";
605 }
606 enum NON-INTRUSIVE {
607 description "none";
608 }
Toru Furusawa28988892017-10-30 17:28:40 -0700609 }
610 description "Monitoring types for the tandem connection monitoring function.";
611 }
612 typedef tcm-extension {
wu6a418d22018-02-02 01:49:21 -0500613 type enumeration {
614 enum NORMAL {
615 description "none";
616 }
617 enum PASS-THROUGH {
618 description "none";
619 }
620 enum ERASE {
621 description "none";
622 }
Toru Furusawa28988892017-10-30 17:28:40 -0700623 }
624 description "none";
625 }
626 typedef percentage-granularity {
wu6a418d22018-02-02 01:49:21 -0500627 type enumeration {
628 enum ONES {
629 description "none";
630 }
631 enum ONE_TENTHS {
632 description "value * (1/10)";
633 }
634 enum ONE_HUNDREDTHS {
635 description "value * (1/100)";
636 }
637 enum ONE_THOUSANDTHS {
638 description "value * (1/1000)";
639 }
Toru Furusawa28988892017-10-30 17:28:40 -0700640 }
641 description "none";
642 }
643 grouping uas-choice {
644 leaf bidirectional {
645 type boolean;
646 default "true";
647 description "none";
648 }
649 leaf uas {
650 type uint64;
651 description "none";
652 }
653 leaf nuas {
654 type uint64;
655 description "none";
656 }
657 leaf fuas {
658 type uint64;
659 description "none";
660 }
661 description "If bidirectional is TRUE then use the uas attribute, if bidirectional is FALSE use the nuas, and fuas attributes";
662 }
663
664}