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