Release version 1.3.1
[ccsdk/features.git] / sdnr / wt / devicemanager-onap / onf14 / provider / src / main / yang / ethernet-container-2-0.yang
1 module ethernet-container-2-0 {\r
2   yang-version 1.1;\r
3   namespace "urn:onf:yang:ethernet-container-2-0";\r
4   prefix ethernet-container;\r
5 \r
6   import ietf-yang-types {\r
7     prefix yang;\r
8   }\r
9   import core-model-1-4 {\r
10     prefix core-model;\r
11   }\r
12 \r
13   organization\r
14     "openBackhaul.com proposal to Open Networking Foundation (ONF)";\r
15   contact\r
16     "WG Web : https://github.com/openBackhaul/Overview\r
17      WG List: Thorsten.Heinze@openBackhaul.com\r
18      Editor : Thorsten Heinze\r
19      Email  : Thorsten.Heinze@openBackhaul.com";\r
20   description\r
21     "Technology specific amendment to the LayerProtocol class of the ONF Core IM for a transport resource for Ethernet.\r
22 \r
23      Copyright 2019 openBackhaul.com\r
24 \r
25      Licensed under the Apache License, Version 2.0 (the 'License');\r
26      you may not use this file except in compliance with the License.\r
27      You may obtain a copy of the License at\r
28      http://www.apache.org/licenses/LICENSE-2.0\r
29      Unless required by applicable law or agreed to in writing, software\r
30      distributed under the License is distributed on an 'AS IS' BASIS,\r
31      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
32      See the License for the specific language governing permissions and\r
33      limitations under the License.";\r
34 \r
35   revision 2020-01-21 {\r
36     description\r
37       "Model for the Transport SDN Pilot at Telefonica Germany\r
38        Please view https://github.com/openBackhaul/ethernetContainer/issues for changes.";\r
39     reference\r
40       "https://github.com/openBackhaul/ethernetContainer/tree/tsp: Model definition\r
41        https://github.com/openBackhaul/onfCoreIm/tree/tsp: ONF TR-512 Core IM incl. Profile and enhanced Equipment definition";\r
42   }\r
43   revision 2019-11-23 {\r
44     description\r
45       "Model for the Transport SDN Pilot at Telefonica Germany\r
46        Please view https://github.com/openBackhaul/ethernetContainer/issues for changes.";\r
47     reference\r
48       "https://github.com/openBackhaul/ethernetContainer/tree/tsp: Model definition\r
49        https://github.com/openBackhaul/onfCoreIm/tree/tsp: ONF TR-512 Core IM incl. Profile and enhanced Equipment definition";\r
50   }\r
51   revision 2019-06-14 {\r
52     description\r
53       "Model for the Transport SDN Pilot at Telefonica Germany\r
54        Please view https://github.com/openBackhaul/ethernetContainer/issues for changes.";\r
55     reference\r
56       "https://github.com/openBackhaul/ethernetContainer/tree/tsp: Model definition\r
57        https://github.com/openBackhaul/onfCoreIm/tree/tsp: ONF TR-512 Core IM incl. Profile and enhanced Equipment definition";\r
58   }\r
59 \r
60   identity LAYER_PROTOCOL_NAME_TYPE_ETHERNET_CONTAINER_LAYER {\r
61     base core-model:LAYER_PROTOCOL_NAME_TYPE;\r
62     description\r
63       "none";\r
64   }\r
65 \r
66   augment "/core-model:control-construct/core-model:logical-termination-point/core-model:layer-protocol" {\r
67     when "derived-from-or-self(./core-model:layer-protocol-name, 'ethernet-container:LAYER_PROTOCOL_NAME_TYPE_ETHERNET_CONTAINER_LAYER')";\r
68     uses ethernet-container-lp-spec;\r
69     description\r
70       "none";\r
71   }\r
72 \r
73   /****************************************\r
74    * package notifications\r
75    **************************************/ \r
76 \r
77   notification object-creation-notification {\r
78     uses object-creation-notification;\r
79     description\r
80       "none";\r
81   }\r
82 \r
83   grouping object-creation-notification {\r
84     leaf counter {\r
85       type int64;\r
86       default "-1";\r
87       config false;\r
88       description\r
89         "Counts object creation notifications.";\r
90     }\r
91     leaf timestamp {\r
92       type yang:date-and-time;\r
93       default "2010-11-20T14:00:00+01:00";\r
94       config false;\r
95       description\r
96         "none";\r
97     }\r
98     leaf object-id-ref {\r
99       type leafref {\r
100         path "/core-model:control-construct/core-model:logical-termination-point/core-model:uuid";\r
101         require-instance false;\r
102       }\r
103       config false;\r
104       description\r
105         "none";\r
106     }\r
107     leaf object-type {\r
108       type string;\r
109       default "Type of created object not specified.";\r
110       config false;\r
111       description\r
112         "none";\r
113     }\r
114     description\r
115       "none";\r
116   }\r
117 \r
118   notification object-deletion-notification {\r
119     uses object-deletion-notification;\r
120     description\r
121       "none";\r
122   }\r
123 \r
124   grouping object-deletion-notification {\r
125     leaf counter {\r
126       type int64;\r
127       default "-1";\r
128       config false;\r
129       description\r
130         "Counts object deletion notifications.";\r
131     }\r
132     leaf timestamp {\r
133       type yang:date-and-time;\r
134       default "2010-11-20T14:00:00+01:00";\r
135       config false;\r
136       description\r
137         "none";\r
138     }\r
139     leaf object-id-ref {\r
140       type leafref {\r
141         path "/core-model:control-construct/core-model:logical-termination-point/core-model:uuid";\r
142         require-instance false;\r
143       }\r
144       config false;\r
145       description\r
146         "none";\r
147     }\r
148     description\r
149       "none";\r
150   }\r
151 \r
152   notification attribute-value-changed-notification {\r
153     uses attribute-value-changed-notification;\r
154     description\r
155       "none";\r
156   }\r
157 \r
158   grouping attribute-value-changed-notification {\r
159     leaf counter {\r
160       type int64;\r
161       default "-1";\r
162       config false;\r
163       description\r
164         "Counts attribute value changed notifications.";\r
165     }\r
166     leaf timestamp {\r
167       type yang:date-and-time;\r
168       default "2010-11-20T14:00:00+01:00";\r
169       config false;\r
170       description\r
171         "none";\r
172     }\r
173     leaf object-id-ref {\r
174       type leafref {\r
175         path "/core-model:control-construct/core-model:logical-termination-point/core-model:uuid";\r
176         require-instance false;\r
177       }\r
178       config false;\r
179       description\r
180         "none";\r
181     }\r
182     leaf attribute-name {\r
183       type string;\r
184       default "Attribute name not specified.";\r
185       config false;\r
186       description\r
187         "Name of the attribute that has been changed.";\r
188     }\r
189     leaf new-value {\r
190       type string;\r
191       default "New value not specified.";\r
192       config false;\r
193       description\r
194         "Attribute value converted to a string (xml, json, ...)";\r
195     }\r
196     description\r
197       "none";\r
198   }\r
199 \r
200   notification problem-notification {\r
201     uses problem-notification;\r
202     description\r
203       "none";\r
204   }\r
205 \r
206   grouping problem-notification {\r
207     leaf counter {\r
208       type int64;\r
209       default "-1";\r
210       config false;\r
211       description\r
212         "Counts problem notifications";\r
213     }\r
214     leaf timestamp {\r
215       type yang:date-and-time;\r
216       default "2010-11-20T14:00:00+01:00";\r
217       config false;\r
218       description\r
219         "none";\r
220     }\r
221     leaf object-id-ref {\r
222       type leafref {\r
223         path "/core-model:control-construct/core-model:logical-termination-point/core-model:uuid";\r
224         require-instance false;\r
225       }\r
226       config false;\r
227       description\r
228         "none";\r
229     }\r
230     leaf problem {\r
231       type string;\r
232       default "Problem name not specified.";\r
233       config false;\r
234       description\r
235         "Name of the problem according to supportedAlarmList";\r
236     }\r
237     leaf severity {\r
238       type severity-type;\r
239       default "SEVERITY_TYPE_WARNING";\r
240       config false;\r
241       description\r
242         "Severity of the problem according to problemKindSeverity";\r
243     }\r
244     description\r
245       "none";\r
246   }\r
247 \r
248   /****************************************\r
249    * grouping statements for object classes\r
250    **************************************/ \r
251   /****************************************\r
252    * package super-classes\r
253    **************************************/ \r
254 \r
255   grouping current-problem {\r
256     leaf sequence-number {\r
257       type int16;\r
258       config false;\r
259       description\r
260         "Unique sequence number of the current problem object.";\r
261     }\r
262     leaf timestamp {\r
263       type yang:date-and-time;\r
264       default "2010-11-20T14:00:00+01:00";\r
265       config false;\r
266       description\r
267         "Time when the alarm was raised.";\r
268     }\r
269     leaf problem-severity {\r
270       type severity-type;\r
271       default "SEVERITY_TYPE_NOT_YET_DEFINED";\r
272       config false;\r
273       description\r
274         "Severity of the alarm.";\r
275     }\r
276     description\r
277       "none";\r
278   }\r
279 \r
280   grouping current-performance {\r
281     leaf timestamp {\r
282       type yang:date-and-time;\r
283       default "2010-11-20T14:00:00+01:00";\r
284       config false;\r
285       description\r
286         "The timestamp associated with when the current data was collected.";\r
287     }\r
288     leaf suspect-interval-flag {\r
289       type boolean;\r
290       default "false";\r
291       config false;\r
292       description\r
293         "This attribute is used to indicate that the performance data for the current period may not be reliable. Some reasons for this to occur are:\r
294             â€“ Suspect data were detected by the actual resource doing data collection.\r
295             â€“ Transition of the administrativeState attribute to/from the 'lock' state.\r
296             â€“ Transition of the operationalState to/from the 'disabled' state.\r
297             â€“ Scheduler setting that inhibits the collection function.\r
298             â€“ The performance counters were reset during the interval.\r
299             â€“ The currentData (or subclass) object instance was created during the monitoring period.";\r
300     }\r
301     leaf elapsed-time {\r
302       type int64;\r
303       units "s";\r
304       default "-1";\r
305       config false;\r
306       description\r
307         "Number of seconds that elapsed since the last reset of the counter.";\r
308     }\r
309     leaf scanner-id {\r
310       type string;\r
311       default "Scanner ID not defined.";\r
312       config false;\r
313       description\r
314         "none";\r
315     }\r
316     leaf granularity-period {\r
317       type granularity-period-type;\r
318       config false;\r
319       description\r
320         "Time period between reset of the underlying counter.";\r
321     }\r
322     description\r
323       "none";\r
324   }\r
325 \r
326   grouping historical-performance {\r
327     leaf suspect-interval-flag {\r
328       type boolean;\r
329       default "false";\r
330       config false;\r
331       description\r
332         "This attribute indicates that the data collected during the interval is suspect.";\r
333     }\r
334     leaf history-data-id {\r
335       type string;\r
336       default "History Data ID not defined.";\r
337       config false;\r
338       description\r
339         "none";\r
340     }\r
341     leaf granularity-period {\r
342       type granularity-period-type;\r
343       config false;\r
344       description\r
345         "Time period between reset of the underlying counter.";\r
346     }\r
347     leaf period-end-time {\r
348       type yang:date-and-time;\r
349       config false;\r
350       description\r
351         "Time when the counter values have been recorded and the counter reset.";\r
352     }\r
353     description\r
354       "none";\r
355   }\r
356 \r
357   grouping ethernet-container-lp-spec {\r
358     container ethernet-container-pac {\r
359       uses ethernet-container-pac;\r
360       description\r
361         "none";\r
362     }\r
363     description\r
364       "none";\r
365   }\r
366 \r
367   grouping ethernet-container-pac {\r
368     container ethernet-container-capability {\r
369       config false;\r
370       uses ethernet-container-capability;\r
371       description\r
372         "none";\r
373     }\r
374     container ethernet-container-configuration {\r
375       uses ethernet-container-configuration;\r
376       description\r
377         "none";\r
378     }\r
379     container ethernet-container-status {\r
380       config false;\r
381       uses ethernet-container-status;\r
382       description\r
383         "none";\r
384     }\r
385     container ethernet-container-current-problems {\r
386       config false;\r
387       uses ethernet-container-current-problems;\r
388       description\r
389         "none";\r
390     }\r
391     container ethernet-container-current-performance {\r
392       config false;\r
393       uses ethernet-container-current-performance;\r
394       description\r
395         "none";\r
396     }\r
397     container ethernet-container-historical-performances {\r
398       config false;\r
399       uses ethernet-container-historical-performances;\r
400       description\r
401         "none";\r
402     }\r
403     description\r
404       "none";\r
405   }\r
406 \r
407   grouping ethernet-container-capability {\r
408     list available-queue-list {\r
409       key "queue-name";\r
410       config false;\r
411       min-elements 1;\r
412       max-elements 8;\r
413       uses available-queue-type;\r
414       description\r
415         "List of queues, which are available at the physical interface.";\r
416     }\r
417     leaf explicit-congestion-notification-is-avail {\r
418       type boolean;\r
419       default "false";\r
420       config false;\r
421       description\r
422         "1 = Explicit Congestion Notification is available at this queue.";\r
423     }\r
424     leaf ingress-policing-is-avail {\r
425       type boolean;\r
426       default "false";\r
427       config false;\r
428       description\r
429         "1 = This interface supports policing.";\r
430     }\r
431     leaf egress-shaping-is-avail {\r
432       type boolean;\r
433       default "false";\r
434       config false;\r
435       description\r
436         "1 = This interface supports shaping.";\r
437     }\r
438     leaf information-rate-min {\r
439       type int32;\r
440       units "kbit/s";\r
441       default "-1";\r
442       config false;\r
443       description\r
444         "Only relevant if (egressShapingIsAvail==1): Minimum configurable throuput in kbit/s.";\r
445     }\r
446     leaf information-rate-max {\r
447       type int32;\r
448       units "kbit/s";\r
449       default "-1";\r
450       config false;\r
451       description\r
452         "Only relevant if (egressShapingIsAvail==1): Maximum configurable throuput in kbit/s.";\r
453     }\r
454     leaf burst-size-min {\r
455       type int16;\r
456       units "kByte";\r
457       default "-1";\r
458       config false;\r
459       description\r
460         "Only relevant if (egressShapingIsAvail==1): Minimum configurable value for the number of kBytes, which could be sent in a single burst.";\r
461     }\r
462     leaf burst-size-max {\r
463       type int16;\r
464       units "kByte";\r
465       default "-1";\r
466       config false;\r
467       description\r
468         "Only relevant if (egressShapingIsAvail==1): Maximum configurable value for the number of kBytes, which could be sent in a single burst.";\r
469     }\r
470     leaf bundling-is-avail {\r
471       type boolean;\r
472       default "false";\r
473       config false;\r
474       description\r
475         "This attribute has to be set on 'true', if the device allows combining resources from several air interfaces for transporting this Ethernet container.";\r
476     }\r
477     leaf bundling-group-size-max {\r
478       type int8;\r
479       default "-1";\r
480       config false;\r
481       description\r
482         "802.3 according to 30.11.1.1.6 aLocalPAFCapacity and ITU-T Rec. G.998.3 Appendix II aGroupCapacity. No Mbit/s value, but number of Ethernet Segments that can be aggregated for transporting this Ethernet Container. Reasonable values are between1 and 32.";\r
483     }\r
484     leaf support-of-management-frames-without-preamble-is-avail {\r
485       type boolean;\r
486       default "false";\r
487       config false;\r
488       description\r
489         "802.3. 1 = Management frames with suppressed preamble are also accepted.";\r
490     }\r
491     list supported-header-compression-kind-list {\r
492       key "header-compression-name";\r
493       config false;\r
494       min-elements 1;\r
495       uses header-compression-kind;\r
496       description\r
497         "Lists the kinds of header compression, which are supported by the device.";\r
498     }\r
499     leaf fec-is-avail {\r
500       type boolean;\r
501       default "false";\r
502       config false;\r
503       description\r
504         "802.3 according to 30.5.1.1.15 aFECAbility, 45.2.1.92.1 BASE-R FEC ability and 45.2.3.37 10GBASE-PR and 10/1GBASE-PRX FEC ability register and ITU-T Rec. G.998.3 Appendix II aFECSupported. 1 = Indicates that an optional Forward Error Correction (FEC) is supported.";\r
505     }\r
506     leaf fec-word-size-max {\r
507       type int16;\r
508       units "Byte";\r
509       default "-1";\r
510       config false;\r
511       description\r
512         "ITU-T Rec. G.998.3 Appendix II aFECWordSize. Indicates maximum supported Forward Error Correction (FEC) code word size in Bytes. Expected values between 20 and 255.";\r
513     }\r
514     leaf-list supported-fec-redundancy-size-list {\r
515       type fec-redundancy-size-type;\r
516       config false;\r
517       min-elements 1;\r
518       description\r
519         "ITU-T Rec. G.998.3 Appendix II aFECRedundancySize. Indicates maximum supported Forward Error Correction (FEC) redundancy word size.";\r
520     }\r
521     leaf-list supported-fec-interleaver-kind-list {\r
522       type fec-interleaver-kind-type;\r
523       config false;\r
524       min-elements 1;\r
525       description\r
526         "ITU-T Rec. G.998.3 Appendix II aFECInterleaverType. Supported kinds of Forward Error Correction (FEC) interleaver";\r
527     }\r
528     leaf-list supported-fec-interleaver-depth-list {\r
529       type fec-interleaver-depth-type;\r
530       config false;\r
531       min-elements 1;\r
532       description\r
533         "ITU-T Rec. G.998.3 Appendix II aFECInterleaverDepth. Indicates the supported depths of the Forward Error Correction (FEC) interleaver.";\r
534     }\r
535     leaf encryption-is-avail {\r
536       type boolean;\r
537       default "false";\r
538       config false;\r
539       description\r
540         "Shall be marked 'true', if Ethernet payload encryption is available.";\r
541     }\r
542     leaf admin-shut-down-is-avail {\r
543       type boolean;\r
544       default "false";\r
545       config false;\r
546       description\r
547         "1 = Manual switching on and off of the interface without deleting it (underlying OSI network layers are also not affected) is available.";\r
548     }\r
549     leaf-list supported-loop-back-kind-list {\r
550       type loop-back-type;\r
551       config false;\r
552       min-elements 1;\r
553       max-elements 3;\r
554       description\r
555         "List of supported kinds of looping back.";\r
556     }\r
557     leaf maintenance-timer-range {\r
558       type string;\r
559       default "Range of the maintenance timer not yet defined.";\r
560       config false;\r
561       description\r
562         "Available time periods for maintenance configurations to be described. Concrete values shall be separated by commas (e.g. '10, 60, 360'). Ranges shall be expressed as two values separated by a minus (e.g. '10-360').";\r
563     }\r
564     leaf statistics-is-avail {\r
565       type boolean;\r
566       default "false";\r
567       config false;\r
568       description\r
569         "1 = Continuous statistics counters are available.";\r
570     }\r
571     leaf-list supported-alarm-list {\r
572       type string;\r
573       config false;\r
574       min-elements 2;\r
575       description\r
576         "Available alarms to be listed. Mandatory:'framingIsFaulty' and 'containerIsDown'. Further alarms might be added by the vendor.";\r
577     }\r
578     leaf performance-monitoring-is-avail {\r
579       type boolean;\r
580       default "false";\r
581       config false;\r
582       description\r
583         "1 = Collection and aggregation of performance values is available.";\r
584     }\r
585     description\r
586       "none";\r
587   }\r
588 \r
589   grouping ethernet-container-configuration {\r
590     leaf interface-name {\r
591       type string;\r
592       default "Interface name not yet defined.";\r
593       description\r
594         "Description of the interface, could be a name, could be a number. Free text field to be filled by the operator.";\r
595     }\r
596     leaf interface-is-on {\r
597       type boolean;\r
598       default "false";\r
599       description\r
600         "Only relevant if (adminShutDownIsAvail==1). 1 = Activation of the interface. 0 = De-activation of the interface without deleting it (underlying OSI network layers are not affected).";\r
601     }\r
602     list queue-behavior-list {\r
603       key "queue-name";\r
604       min-elements 1;\r
605       max-elements 8;\r
606       uses queue-behavior-type;\r
607       description\r
608         "Defines scheduling and dropping behavior of all queues.";\r
609     }\r
610     leaf explicit-congestion-notification-is-on {\r
611       type boolean;\r
612       default "false";\r
613       description\r
614         "1 = Explicit Congestion Notification is activitated at this queue.";\r
615     }\r
616     leaf ingress-policing-profile {\r
617       type leafref {\r
618         path "/core-model:control-construct/core-model:profile-collection/core-model:profile/core-model:uuid";\r
619         require-instance false;\r
620       }\r
621       description\r
622         "Reference to the policing profile, which is active on this interface. Attribute to point to an instance of Profile with profileName=='PROFILE_NAME_TYPE_POLICING_PROFILE'.";\r
623     }\r
624     leaf egress-shaping-is-on {\r
625       type boolean;\r
626       default "false";\r
627       description\r
628         "1 = Shaping on the egress is activated.";\r
629     }\r
630     leaf maximum-information-rate {\r
631       type int32;\r
632       units "kbit/s";\r
633       default "-1";\r
634       description\r
635         "Only relevant if (egressShapingIsAvail==1): Limits the throughput on the egress.";\r
636     }\r
637     leaf maximum-burst-size {\r
638       type int16;\r
639       units "kByte";\r
640       default "-1";\r
641       description\r
642         "Only relevant if (egressShapingIsAvail==1): Limits the number of kBytes, which are sent in a single burst.";\r
643     }\r
644     leaf bundling-is-on {\r
645       type boolean;\r
646       default "false";\r
647       description\r
648         "802.3 according to 30.11.1.1.5 aPAFAdminState and 45.2.3.26.3 PAF enable. 1 = Algorithm for bundling Ethernet segments is activated (, even if only a single Structure would be associated).";\r
649     }\r
650     leaf header-compression-kind {\r
651       type leafref {\r
652         path "/core-model:control-construct/core-model:logical-termination-point/core-model:layer-protocol/ethernet-container:ethernet-container-pac/ethernet-container:ethernet-container-capability/ethernet-container:supported-header-compression-kind-list/ethernet-container:header-compression-name";\r
653         require-instance false;\r
654       }\r
655       must 'boolean(/core-model:control-construct/core-model:logical-termination-point/core-model:layer-protocol/ethernet-container:ethernet-container-pac/ethernet-container:ethernet-container-capability/ethernet-container:supported-header-compression-kind-list[header-compression-name=current()])';\r
656       description\r
657         "Defines the kind of header compression to be used.";\r
658     }\r
659     leaf fec-is-on {\r
660       type boolean;\r
661       default "false";\r
662       description\r
663         "802.3 according to 30.5.1.1.16 aFECmode, 45.2.1.93.1 FEC enable and 45.2.3.38.2 10 Gb/s FEC Enable and ITU-T Rec. G.998.3 Appendix II aFECAdminState. Only relevant if (fecIsAvail==1). 1 = Activation of the Forward Error Correction (FEC).";\r
664     }\r
665     leaf fec-word-size {\r
666       type int16;\r
667       units "Byte";\r
668       default "-1";\r
669       description\r
670         "ITU-T Rec. G.998.3 Appendix II aFECWordSize. Only relevant if (fecIsSupported==1). Defining the Forward Error Correction (FEC) code word size in Bytes. Expected values between 20 and 255.";\r
671     }\r
672     leaf fec-redundancy-size {\r
673       type fec-redundancy-size-type;\r
674       default "FEC_REDUNDANCY_SIZE_TYPE_NOT_YET_DEFINED";\r
675       description\r
676         "ITU-T Rec. G.998.3 Appendix II aFECRedundancySize. Only relevant if (fecIsSupported==1). Defining the Forward Error Correction (FEC) redundancy word size.";\r
677     }\r
678     leaf fec-interleaver-kind {\r
679       type fec-interleaver-kind-type;\r
680       default "FEC_INTERLEAVER_KIND_TYPE_NOT_YET_DEFINED";\r
681       description\r
682         "ITU-T Rec. G.998.3 Appendix II aFECInterleaverType. Only relevant if (fecIsSupported==1). Defining the kind of Forward Error Correction (FEC) interleaver.";\r
683     }\r
684     leaf fec-interleaver-depth {\r
685       type fec-interleaver-depth-type;\r
686       default "FEC_INTERLEAVER_DEPTH_TYPE_NOT_YET_DEFINED";\r
687       description\r
688         "ITU-T Rec. G.998.3 Appendix II aFECInterleaverDepth. Only relevant if (fecIsSupported==1). Defining the depth of Forward Error Correction (FEC) interleaver.";\r
689     }\r
690     leaf encryption-is-on {\r
691       type boolean;\r
692       default "false";\r
693       description\r
694         "Activates encryption of the Ethernet payload.";\r
695     }\r
696     leaf cryptographic-key {\r
697       type string;\r
698       default "Cryptographic key not yet defined.";\r
699       description\r
700         "Key for transforming plaintext into cipher text data.";\r
701     }\r
702     leaf loop-back-kind-on {\r
703       type loop-back-type;\r
704       default "LOOP_BACK_TYPE_NOT_YET_DEFINED";\r
705       description\r
706         "Maintenance Feature. Configuration of a loop back of TDM time slots on this interface.";\r
707     }\r
708     leaf maintenance-timer {\r
709       type int32;\r
710       units "s";\r
711       default "-1";\r
712       description\r
713         "Time of existence of any maintenance configuration. 0 = maintenance timer is switched off. Valid values are defined in *Capability::maintenanceTimerRange.";\r
714     }\r
715     leaf statistics-is-on {\r
716       type boolean;\r
717       default "false";\r
718       description\r
719         "Only relevant if (statisticsIsAvail==1). 1 = Continuous statistics counters are switched on.";\r
720     }\r
721     list problem-kind-severity-list {\r
722       key "problem-kind-name";\r
723       min-elements 2;\r
724       uses problem-kind-severity-type;\r
725       description\r
726         "Severity of the problem to be configured.";\r
727     }\r
728     leaf performance-monitoring-is-on {\r
729       type boolean;\r
730       default "false";\r
731       description\r
732         "Only relevant if (performanceMonitoringIsAvail==1). 1 = Collection and aggregation of performance values is switched on.";\r
733     }\r
734     description\r
735       "Serving Structures are identified by LogicalTerminationPoint::_serverLtpRefList. If (bundlingIsAvail==1), multiplicity might be *. If (bundlingIsAvail==0), multiplicity must be 0..1. It is assumed that there is just one Ethernet segment per Structure.";\r
736   }\r
737 \r
738   grouping ethernet-container-status {\r
739     leaf interface-status {\r
740       type interface-status-type;\r
741       default "INTERFACE_STATUS_TYPE_NOT_YET_DEFINED";\r
742       config false;\r
743       description\r
744         "Operational status of the interface.";\r
745     }\r
746     leaf bundling-is-up {\r
747       type boolean;\r
748       default "false";\r
749       config false;\r
750       description\r
751         "802.3 and ITU-T Rec. G.998.3 Appendix II aGroupStatus. 1 = Algorithm for bundling Ethernet segments is operative (, even if only a single Structure would be associated).";\r
752     }\r
753     leaf remote-site-is-faulty {\r
754       type boolean;\r
755       default "false";\r
756       config false;\r
757       description\r
758         "802.3. 1 = remote fault condition detected.";\r
759     }\r
760     leaf loop-back-kind-up {\r
761       type loop-back-type;\r
762       default "LOOP_BACK_TYPE_NOT_YET_DEFINED";\r
763       config false;\r
764       description\r
765         "The currently active (not just configured) type of loop back.";\r
766     }\r
767     leaf statistics-is-up {\r
768       type boolean;\r
769       default "false";\r
770       config false;\r
771       description\r
772         "1 = Statistics are currently counted";\r
773     }\r
774     leaf performance-monitoring-is-up {\r
775       type boolean;\r
776       default "false";\r
777       config false;\r
778       description\r
779         "1 = Performance values are currently collected and aggregated.";\r
780     }\r
781     leaf timestamp {\r
782       type yang:date-and-time;\r
783       default "2010-11-20T14:00:00+01:00";\r
784       config false;\r
785       description\r
786         "The timestamp associated with when the statistic values were read/retrieved.";\r
787     }\r
788     leaf last-10-sec-data-input-rate {\r
789       type int32;\r
790       units "kbit/s";\r
791       default "-1";\r
792       config false;\r
793       description\r
794         "Data receive rate over the last 10 second interval in kbit/s.";\r
795     }\r
796     leaf last-10-sec-data-output-rate {\r
797       type int32;\r
798       units "kbit/s";\r
799       default "-1";\r
800       config false;\r
801       description\r
802         "Data transmit rate over the last 10 second interval in kbit/s.";\r
803     }\r
804     leaf total-bytes-input {\r
805       type uint64;\r
806       units "Byte";\r
807       default "0";\r
808       config false;\r
809       description\r
810         "Received data volume in Byte.";\r
811     }\r
812     leaf total-bytes-output {\r
813       type uint64;\r
814       units "Byte";\r
815       default "0";\r
816       config false;\r
817       description\r
818         "Sent data volume in Byte.";\r
819     }\r
820     leaf forwarded-bytes-input {\r
821       type uint64;\r
822       units "Byte";\r
823       default "0";\r
824       config false;\r
825       description\r
826         "Number of received Bytes, for which the device was not their final destination and for which the device attempted to find a route to forward them to that final destination.";\r
827     }\r
828     leaf forwarded-bytes-output {\r
829       type uint64;\r
830       units "Byte";\r
831       default "0";\r
832       config false;\r
833       description\r
834         "Number of Bytes, for which the device was not their final destination and for which it was successful in finding a path to their final destination.";\r
835     }\r
836     description\r
837       "none";\r
838   }\r
839 \r
840   grouping ethernet-container-current-problems {\r
841     list current-problem-list {\r
842       key "sequence-number";\r
843       config false;\r
844       uses container-current-problem-type;\r
845       description\r
846         "none";\r
847     }\r
848     leaf number-of-current-problems {\r
849       type int8;\r
850       default "-1";\r
851       config false;\r
852       description\r
853         "Number of alarms, which are currently active on this interface.";\r
854     }\r
855     leaf time-of-latest-change {\r
856       type yang:date-and-time;\r
857       default "2010-11-20T14:00:00+01:00";\r
858       config false;\r
859       description\r
860         "Date and time when the list of alarms has been changed for the last time.";\r
861     }\r
862     description\r
863       "none";\r
864   }\r
865 \r
866   grouping ethernet-container-current-performance {\r
867     list current-performance-data-list {\r
868       key "granularity-period";\r
869       config false;\r
870       min-elements 1;\r
871       max-elements 2;\r
872       uses container-current-performance-type;\r
873       description\r
874         "none";\r
875     }\r
876     leaf number-of-current-performance-sets {\r
877       type int8;\r
878       default "-1";\r
879       config false;\r
880       description\r
881         "Number of sets of current performance values, which are provided in the list.";\r
882     }\r
883     description\r
884       "Aggregated performance information of the Ethernet container at a particular moment.";\r
885   }\r
886 \r
887   grouping ethernet-container-historical-performances {\r
888     list historical-performance-data-list {\r
889       key "granularity-period period-end-time";\r
890       config false;\r
891       uses container-historical-performance-type;\r
892       description\r
893         "none";\r
894     }\r
895     leaf number-of-historical-performance-sets {\r
896       type int16;\r
897       default "-1";\r
898       config false;\r
899       description\r
900         "Number of sets of historical performance values, which are provided in the list.";\r
901     }\r
902     leaf time-of-latest-change {\r
903       type yang:date-and-time;\r
904       default "2010-11-20T14:00:00+01:00";\r
905       config false;\r
906       description\r
907         "Date and time when the list of sets of historical performance values has been changed for the last time (e.g. new one added or existing one deleted).";\r
908     }\r
909     description\r
910       "Aggregated performance information of the Ethernet container for a pre-defined measurement interval.";\r
911   }\r
912 \r
913   grouping header-compression-kind {\r
914     leaf header-compression-name {\r
915       type string;\r
916       config false;\r
917       description\r
918         "none";\r
919     }\r
920     leaf header-compression-mode {\r
921       type header-compression-mode-type;\r
922       default "HEADER_COMPRESSION_MODE_TYPE_NOT_YET_DEFINED";\r
923       config false;\r
924       description\r
925         "Defines the way of configuring the header compression.";\r
926     }\r
927     leaf-list compressed-protocol-layer-list {\r
928       type protocol-layer-type;\r
929       config false;\r
930       min-elements 1;\r
931       description\r
932         "Only relevant if (headerCompressionMode==PROTOCOL_BASED). List of protocol layers that get compressed with this kind of header compression.";\r
933     }\r
934     leaf-list mpls-payload-kind-list {\r
935       type mpls-payload-kind-type;\r
936       config false;\r
937       min-elements 1;\r
938       description\r
939         "Defines how the header bytes inside the MPLS header has to be interpreted.";\r
940     }\r
941     leaf compressed-header-length {\r
942       type int16;\r
943       units "Byte";\r
944       default "-1";\r
945       config false;\r
946       description\r
947         "Only relevant if (headerCompressionMode==LENGTH_BASED). Number of Bytes of header information that get compressed.";\r
948     }\r
949     description\r
950       "none";\r
951   }\r
952 \r
953   /****************************************\r
954    * typedef statements\r
955    **************************************/ \r
956 \r
957   typedef loop-back-type {\r
958     type identityref {\r
959       base LOOP_BACK_TYPE;\r
960     }\r
961     description\r
962       "none";\r
963   }\r
964 \r
965   typedef header-compression-mode-type {\r
966     type identityref {\r
967       base HEADER_COMPRESSION_MODE_TYPE;\r
968     }\r
969     description\r
970       "none";\r
971   }\r
972 \r
973   typedef protocol-layer-type {\r
974     type identityref {\r
975       base PROTOCOL_LAYER_TYPE;\r
976     }\r
977     description\r
978       "none";\r
979   }\r
980 \r
981   typedef mpls-payload-kind-type {\r
982     type identityref {\r
983       base MPLS_PAYLOAD_KIND_TYPE;\r
984     }\r
985     description\r
986       "none";\r
987   }\r
988 \r
989   typedef queue-name-type {\r
990     type identityref {\r
991       base QUEUE_NAME_TYPE;\r
992     }\r
993     description\r
994       "none";\r
995   }\r
996 \r
997   typedef drop-precedence-type {\r
998     type identityref {\r
999       base DROP_PRECEDENCE_TYPE;\r
1000     }\r
1001     description\r
1002       "none";\r
1003   }\r
1004 \r
1005   typedef dropping-behavior-kind-type {\r
1006     type identityref {\r
1007       base DROPPING_BEHAVIOR_KIND_TYPE;\r
1008     }\r
1009     description\r
1010       "none";\r
1011   }\r
1012 \r
1013   typedef scheduler-kind-type {\r
1014     type identityref {\r
1015       base SCHEDULER_KIND_TYPE;\r
1016     }\r
1017     description\r
1018       "none";\r
1019   }\r
1020 \r
1021   typedef fec-redundancy-size-type {\r
1022     type identityref {\r
1023       base FEC_REDUNDANCY_SIZE_TYPE;\r
1024     }\r
1025     description\r
1026       "none";\r
1027   }\r
1028 \r
1029   typedef fec-interleaver-kind-type {\r
1030     type identityref {\r
1031       base FEC_INTERLEAVER_KIND_TYPE;\r
1032     }\r
1033     description\r
1034       "none";\r
1035   }\r
1036 \r
1037   typedef fec-interleaver-depth-type {\r
1038     type identityref {\r
1039       base FEC_INTERLEAVER_DEPTH_TYPE;\r
1040     }\r
1041     description\r
1042       "ITU-T Rec. G.998.3 Appendix II aFECInterleaverDepth";\r
1043   }\r
1044 \r
1045   /*********************************************\r
1046    * grouping statements for complex data types\r
1047    *******************************************/ \r
1048 \r
1049   identity LOOP_BACK_TYPE {\r
1050     description\r
1051       "none";\r
1052   }\r
1053 \r
1054   identity LOOP_BACK_TYPE_NONE {\r
1055     base LOOP_BACK_TYPE;\r
1056     description\r
1057       "none";\r
1058   }\r
1059 \r
1060   identity LOOP_BACK_TYPE_BACK_TO_LOCAL {\r
1061     base LOOP_BACK_TYPE;\r
1062     description\r
1063       "Returning the Ethernet frames of the local site on the outgoing interface back to the local site.";\r
1064   }\r
1065 \r
1066   identity LOOP_BACK_TYPE_BACK_TO_REMOTE {\r
1067     base LOOP_BACK_TYPE;\r
1068     description\r
1069       "Returning the incoming Ethernet frames back to the remote site.";\r
1070   }\r
1071 \r
1072   identity LOOP_BACK_TYPE_NOT_YET_DEFINED {\r
1073     base LOOP_BACK_TYPE;\r
1074     description\r
1075       "none";\r
1076   }\r
1077 \r
1078   identity HEADER_COMPRESSION_MODE_TYPE {\r
1079     description\r
1080       "none";\r
1081   }\r
1082 \r
1083   identity HEADER_COMPRESSION_MODE_TYPE_AUTO {\r
1084     base HEADER_COMPRESSION_MODE_TYPE;\r
1085     description\r
1086       "The header compression algorithm determines the optimum compression.";\r
1087   }\r
1088 \r
1089   identity HEADER_COMPRESSION_MODE_TYPE_PROTOCOL_BASED {\r
1090     base HEADER_COMPRESSION_MODE_TYPE;\r
1091     description\r
1092       "Predefined protocol layers are to be compressed.";\r
1093   }\r
1094 \r
1095   identity HEADER_COMPRESSION_MODE_TYPE_LENGTH_BASED {\r
1096     base HEADER_COMPRESSION_MODE_TYPE;\r
1097     description\r
1098       "Predefined amount of header bytes are to be compressed.";\r
1099   }\r
1100 \r
1101   identity HEADER_COMPRESSION_MODE_TYPE_NOT_YET_DEFINED {\r
1102     base HEADER_COMPRESSION_MODE_TYPE;\r
1103     description\r
1104       "none";\r
1105   }\r
1106 \r
1107   identity PROTOCOL_LAYER_TYPE {\r
1108     description\r
1109       "none";\r
1110   }\r
1111 \r
1112   identity PROTOCOL_LAYER_TYPE_NONE {\r
1113     base PROTOCOL_LAYER_TYPE;\r
1114     description\r
1115       "none";\r
1116   }\r
1117 \r
1118   identity PROTOCOL_LAYER_TYPE_ETHERNET_MAC {\r
1119     base PROTOCOL_LAYER_TYPE;\r
1120     description\r
1121       "none";\r
1122   }\r
1123 \r
1124   identity PROTOCOL_LAYER_TYPE_VLAN {\r
1125     base PROTOCOL_LAYER_TYPE;\r
1126     description\r
1127       "none";\r
1128   }\r
1129 \r
1130   identity PROTOCOL_LAYER_TYPE_Q_IN_Q {\r
1131     base PROTOCOL_LAYER_TYPE;\r
1132     description\r
1133       "none";\r
1134   }\r
1135 \r
1136   identity PROTOCOL_LAYER_TYPE_MPLS {\r
1137     base PROTOCOL_LAYER_TYPE;\r
1138     description\r
1139       "none";\r
1140   }\r
1141 \r
1142   identity PROTOCOL_LAYER_TYPE_IPV4 {\r
1143     base PROTOCOL_LAYER_TYPE;\r
1144     description\r
1145       "none";\r
1146   }\r
1147 \r
1148   identity PROTOCOL_LAYER_TYPE_IPV6 {\r
1149     base PROTOCOL_LAYER_TYPE;\r
1150     description\r
1151       "none";\r
1152   }\r
1153 \r
1154   identity PROTOCOL_LAYER_TYPE_TCP {\r
1155     base PROTOCOL_LAYER_TYPE;\r
1156     description\r
1157       "none";\r
1158   }\r
1159 \r
1160   identity PROTOCOL_LAYER_TYPE_UDP {\r
1161     base PROTOCOL_LAYER_TYPE;\r
1162     description\r
1163       "none";\r
1164   }\r
1165 \r
1166   identity PROTOCOL_LAYER_TYPE_RTP {\r
1167     base PROTOCOL_LAYER_TYPE;\r
1168     description\r
1169       "none";\r
1170   }\r
1171 \r
1172   identity PROTOCOL_LAYER_TYPE_GTP_U {\r
1173     base PROTOCOL_LAYER_TYPE;\r
1174     description\r
1175       "none";\r
1176   }\r
1177 \r
1178   identity PROTOCOL_LAYER_TYPE_OTHERS {\r
1179     base PROTOCOL_LAYER_TYPE;\r
1180     description\r
1181       "none";\r
1182   }\r
1183 \r
1184   identity PROTOCOL_LAYER_TYPE_NOT_YET_DEFINED {\r
1185     base PROTOCOL_LAYER_TYPE;\r
1186     description\r
1187       "none";\r
1188   }\r
1189 \r
1190   identity MPLS_PAYLOAD_KIND_TYPE {\r
1191     description\r
1192       "none";\r
1193   }\r
1194 \r
1195   identity MPLS_PAYLOAD_KIND_TYPE_NONE {\r
1196     base MPLS_PAYLOAD_KIND_TYPE;\r
1197     description\r
1198       "Parameter not required.";\r
1199   }\r
1200 \r
1201   identity MPLS_PAYLOAD_KIND_TYPE_AUTO {\r
1202     base MPLS_PAYLOAD_KIND_TYPE;\r
1203     description\r
1204       "If the Control Word (CW) will be present, it would be Ethernet Over MPLS. OtherwiseI, it would be Pv4/IPv6.";\r
1205   }\r
1206 \r
1207   identity MPLS_PAYLOAD_KIND_TYPE_ETH_O_MPLS {\r
1208     base MPLS_PAYLOAD_KIND_TYPE;\r
1209     description\r
1210       "Always Ethernet over MPLS ";\r
1211   }\r
1212 \r
1213   identity MPLS_PAYLOAD_KIND_TYPE_IP_O_MPLS {\r
1214     base MPLS_PAYLOAD_KIND_TYPE;\r
1215     description\r
1216       "Always IPv4/IPv6 over MPLS";\r
1217   }\r
1218 \r
1219   identity MPLS_PAYLOAD_KIND_TYPE_NOT_YET_DEFINED {\r
1220     base MPLS_PAYLOAD_KIND_TYPE;\r
1221     description\r
1222       "none";\r
1223   }\r
1224 \r
1225   identity QUEUE_NAME_TYPE {\r
1226     description\r
1227       "none";\r
1228   }\r
1229 \r
1230   identity QUEUE_NAME_TYPE_BEST_EFFORT_QUEUE {\r
1231     base QUEUE_NAME_TYPE;\r
1232     description\r
1233       "QueueNumber=0;";\r
1234   }\r
1235 \r
1236   identity QUEUE_NAME_TYPE_ASSURED_FORWARDING_QUEUE1 {\r
1237     base QUEUE_NAME_TYPE;\r
1238     description\r
1239       "QueueNumber=1;";\r
1240   }\r
1241 \r
1242   identity QUEUE_NAME_TYPE_ASSURED_FORWARDING_QUEUE2 {\r
1243     base QUEUE_NAME_TYPE;\r
1244     description\r
1245       "QueueNumber=2;";\r
1246   }\r
1247 \r
1248   identity QUEUE_NAME_TYPE_ASSURED_FORWARDING_QUEUE3 {\r
1249     base QUEUE_NAME_TYPE;\r
1250     description\r
1251       "QueueNumber=3;";\r
1252   }\r
1253 \r
1254   identity QUEUE_NAME_TYPE_ASSURED_FORWARDING_QUEUE4 {\r
1255     base QUEUE_NAME_TYPE;\r
1256     description\r
1257       "QueueNumber=4;";\r
1258   }\r
1259 \r
1260   identity QUEUE_NAME_TYPE_EXPEDITED_FORWARDING_QUEUE {\r
1261     base QUEUE_NAME_TYPE;\r
1262     description\r
1263       "QueueNumber=5;";\r
1264   }\r
1265 \r
1266   identity QUEUE_NAME_TYPE_CLASS_SELECTOR_QUEUE6 {\r
1267     base QUEUE_NAME_TYPE;\r
1268     description\r
1269       "QueueNumber=6;";\r
1270   }\r
1271 \r
1272   identity QUEUE_NAME_TYPE_CLASS_SELECTOR_QUEUE7 {\r
1273     base QUEUE_NAME_TYPE;\r
1274     description\r
1275       "QueueNumber=7;";\r
1276   }\r
1277 \r
1278   identity QUEUE_NAME_TYPE_QUEUENAME_NOT_YET_DEFINED {\r
1279     base QUEUE_NAME_TYPE;\r
1280     description\r
1281       "none";\r
1282   }\r
1283 \r
1284   identity DROP_PRECEDENCE_TYPE {\r
1285     description\r
1286       "none";\r
1287   }\r
1288 \r
1289   identity DROP_PRECEDENCE_TYPE_ALL {\r
1290     base DROP_PRECEDENCE_TYPE;\r
1291     description\r
1292       "If all drop precedence are affected. This includes the case of drop precedences are not implemented.";\r
1293   }\r
1294 \r
1295   identity DROP_PRECEDENCE_TYPE_LOW {\r
1296     base DROP_PRECEDENCE_TYPE;\r
1297     description\r
1298       "Would be equal to GREEN.";\r
1299   }\r
1300 \r
1301   identity DROP_PRECEDENCE_TYPE_MEDIUM {\r
1302     base DROP_PRECEDENCE_TYPE;\r
1303     description\r
1304       "Would be equal to YELLOW.";\r
1305   }\r
1306 \r
1307   identity DROP_PRECEDENCE_TYPE_HIGH {\r
1308     base DROP_PRECEDENCE_TYPE;\r
1309     description\r
1310       "Would be equal to RED.";\r
1311   }\r
1312 \r
1313   identity DROP_PRECEDENCE_TYPE_NOT_YET_DEFINED {\r
1314     base DROP_PRECEDENCE_TYPE;\r
1315     description\r
1316       "none";\r
1317   }\r
1318 \r
1319   identity DROPPING_BEHAVIOR_KIND_TYPE {\r
1320     description\r
1321       "none";\r
1322   }\r
1323 \r
1324   identity DROPPING_BEHAVIOR_KIND_TYPE_DROP_TAIL {\r
1325     base DROPPING_BEHAVIOR_KIND_TYPE;\r
1326     description\r
1327       "When the queue is filled to capacity, newly arriving packets are discarded until there is room in the queue to accept new traffic.  Packets are not differentiated, i.e., all packets are treated identically.";\r
1328   }\r
1329 \r
1330   identity DROPPING_BEHAVIOR_KIND_TYPE_RED {\r
1331     base DROPPING_BEHAVIOR_KIND_TYPE;\r
1332     description\r
1333       "Queue management based on Random Early Detection (RED).  RED drops packets based on a drop probability that is based on the average queue length, and settings of mininum and maximum queue thresholds.  On ECN-capable devices, packets may be marked instead of dropped to signal congestion to the sender.";\r
1334   }\r
1335 \r
1336   identity DROPPING_BEHAVIOR_KIND_TYPE_WRED {\r
1337     base DROPPING_BEHAVIOR_KIND_TYPE;\r
1338     description\r
1339       "Queue management based on a variant of RED in which the packet drop probability is based on its traffic class.";\r
1340   }\r
1341 \r
1342   identity DROPPING_BEHAVIOR_KIND_TYPE_NOT_YET_DEFINED {\r
1343     base DROPPING_BEHAVIOR_KIND_TYPE;\r
1344     description\r
1345       "none";\r
1346   }\r
1347 \r
1348   identity SCHEDULER_KIND_TYPE {\r
1349     description\r
1350       "none";\r
1351   }\r
1352 \r
1353   identity SCHEDULER_KIND_TYPE_STRICT {\r
1354     base SCHEDULER_KIND_TYPE;\r
1355     description\r
1356       "Strict Priority";\r
1357   }\r
1358 \r
1359   identity SCHEDULER_KIND_TYPE_WFQ {\r
1360     base SCHEDULER_KIND_TYPE;\r
1361     description\r
1362       "Weighted-Fair-Queuing";\r
1363   }\r
1364 \r
1365   identity SCHEDULER_KIND_TYPE_WRR {\r
1366     base SCHEDULER_KIND_TYPE;\r
1367     description\r
1368       "Weighted Round Robin";\r
1369   }\r
1370 \r
1371   identity SCHEDULER_KIND_TYPE_DWRR {\r
1372     base SCHEDULER_KIND_TYPE;\r
1373     description\r
1374       "Deficit Weighted Round Robin";\r
1375   }\r
1376 \r
1377   identity SCHEDULER_KIND_TYPE_NOT_YET_DEFINED {\r
1378     base SCHEDULER_KIND_TYPE;\r
1379     description\r
1380       "none";\r
1381   }\r
1382 \r
1383   identity FEC_REDUNDANCY_SIZE_TYPE {\r
1384     description\r
1385       "none";\r
1386   }\r
1387 \r
1388   identity FEC_REDUNDANCY_SIZE_TYPE_2 {\r
1389     base FEC_REDUNDANCY_SIZE_TYPE;\r
1390     description\r
1391       "none";\r
1392   }\r
1393 \r
1394   identity FEC_REDUNDANCY_SIZE_TYPE_4 {\r
1395     base FEC_REDUNDANCY_SIZE_TYPE;\r
1396     description\r
1397       "none";\r
1398   }\r
1399 \r
1400   identity FEC_REDUNDANCY_SIZE_TYPE_8 {\r
1401     base FEC_REDUNDANCY_SIZE_TYPE;\r
1402     description\r
1403       "none";\r
1404   }\r
1405 \r
1406   identity FEC_REDUNDANCY_SIZE_TYPE_16 {\r
1407     base FEC_REDUNDANCY_SIZE_TYPE;\r
1408     description\r
1409       "none";\r
1410   }\r
1411 \r
1412   identity FEC_REDUNDANCY_SIZE_TYPE_20 {\r
1413     base FEC_REDUNDANCY_SIZE_TYPE;\r
1414     description\r
1415       "none";\r
1416   }\r
1417 \r
1418   identity FEC_REDUNDANCY_SIZE_TYPE_NOT_YET_DEFINED {\r
1419     base FEC_REDUNDANCY_SIZE_TYPE;\r
1420     description\r
1421       "none";\r
1422   }\r
1423 \r
1424   identity FEC_INTERLEAVER_KIND_TYPE {\r
1425     description\r
1426       "none";\r
1427   }\r
1428 \r
1429   identity FEC_INTERLEAVER_KIND_TYPE_NONE {\r
1430     base FEC_INTERLEAVER_KIND_TYPE;\r
1431     description\r
1432       "none";\r
1433   }\r
1434 \r
1435   identity FEC_INTERLEAVER_KIND_TYPE_BLOCK {\r
1436     base FEC_INTERLEAVER_KIND_TYPE;\r
1437     description\r
1438       "none";\r
1439   }\r
1440 \r
1441   identity FEC_INTERLEAVER_KIND_TYPE_CONVOLUTION {\r
1442     base FEC_INTERLEAVER_KIND_TYPE;\r
1443     description\r
1444       "none";\r
1445   }\r
1446 \r
1447   identity FEC_INTERLEAVER_KIND_TYPE_NOT_YET_DEFINED {\r
1448     base FEC_INTERLEAVER_KIND_TYPE;\r
1449     description\r
1450       "none";\r
1451   }\r
1452 \r
1453   identity FEC_INTERLEAVER_DEPTH_TYPE {\r
1454     description\r
1455       "none";\r
1456   }\r
1457 \r
1458   identity FEC_INTERLEAVER_DEPTH_TYPE_1 {\r
1459     base FEC_INTERLEAVER_DEPTH_TYPE;\r
1460     description\r
1461       "none";\r
1462   }\r
1463 \r
1464   identity FEC_INTERLEAVER_DEPTH_TYPE_2 {\r
1465     base FEC_INTERLEAVER_DEPTH_TYPE;\r
1466     description\r
1467       "none";\r
1468   }\r
1469 \r
1470   identity FEC_INTERLEAVER_DEPTH_TYPE_3 {\r
1471     base FEC_INTERLEAVER_DEPTH_TYPE;\r
1472     description\r
1473       "none";\r
1474   }\r
1475 \r
1476   identity FEC_INTERLEAVER_DEPTH_TYPE_4 {\r
1477     base FEC_INTERLEAVER_DEPTH_TYPE;\r
1478     description\r
1479       "none";\r
1480   }\r
1481 \r
1482   identity FEC_INTERLEAVER_DEPTH_TYPE_6 {\r
1483     base FEC_INTERLEAVER_DEPTH_TYPE;\r
1484     description\r
1485       "none";\r
1486   }\r
1487 \r
1488   identity FEC_INTERLEAVER_DEPTH_TYPE_8 {\r
1489     base FEC_INTERLEAVER_DEPTH_TYPE;\r
1490     description\r
1491       "none";\r
1492   }\r
1493 \r
1494   identity FEC_INTERLEAVER_DEPTH_TYPE_12 {\r
1495     base FEC_INTERLEAVER_DEPTH_TYPE;\r
1496     description\r
1497       "none";\r
1498   }\r
1499 \r
1500   identity FEC_INTERLEAVER_DEPTH_TYPE_16 {\r
1501     base FEC_INTERLEAVER_DEPTH_TYPE;\r
1502     description\r
1503       "none";\r
1504   }\r
1505 \r
1506   identity FEC_INTERLEAVER_DEPTH_TYPE_24 {\r
1507     base FEC_INTERLEAVER_DEPTH_TYPE;\r
1508     description\r
1509       "none";\r
1510   }\r
1511 \r
1512   identity FEC_INTERLEAVER_DEPTH_TYPE_32 {\r
1513     base FEC_INTERLEAVER_DEPTH_TYPE;\r
1514     description\r
1515       "none";\r
1516   }\r
1517 \r
1518   identity FEC_INTERLEAVER_DEPTH_TYPE_48 {\r
1519     base FEC_INTERLEAVER_DEPTH_TYPE;\r
1520     description\r
1521       "none";\r
1522   }\r
1523 \r
1524   identity FEC_INTERLEAVER_DEPTH_TYPE_96 {\r
1525     base FEC_INTERLEAVER_DEPTH_TYPE;\r
1526     description\r
1527       "none";\r
1528   }\r
1529 \r
1530   identity FEC_INTERLEAVER_DEPTH_TYPE_NOT_YET_DEFINED {\r
1531     base FEC_INTERLEAVER_DEPTH_TYPE;\r
1532     description\r
1533       "none";\r
1534   }\r
1535 \r
1536   identity GRANULARITY_PERIOD_TYPE {\r
1537     description\r
1538       "none";\r
1539   }\r
1540 \r
1541   identity GRANULARITY_PERIOD_TYPE_UNKNOWN {\r
1542     base GRANULARITY_PERIOD_TYPE;\r
1543     description\r
1544       "none";\r
1545   }\r
1546 \r
1547   identity GRANULARITY_PERIOD_TYPE_PERIOD-15-MIN {\r
1548     base GRANULARITY_PERIOD_TYPE;\r
1549     description\r
1550       "none";\r
1551   }\r
1552 \r
1553   identity GRANULARITY_PERIOD_TYPE_PERIOD-24-HOURS {\r
1554     base GRANULARITY_PERIOD_TYPE;\r
1555     description\r
1556       "none";\r
1557   }\r
1558 \r
1559   identity GRANULARITY_PERIOD_TYPE_NOT_YET_DEFINED {\r
1560     base GRANULARITY_PERIOD_TYPE;\r
1561     description\r
1562       "none";\r
1563   }\r
1564 \r
1565   identity SEVERITY_TYPE {\r
1566     description\r
1567       "none";\r
1568   }\r
1569 \r
1570   identity SEVERITY_TYPE_NON_ALARMED {\r
1571     base SEVERITY_TYPE;\r
1572     description\r
1573       "none";\r
1574   }\r
1575 \r
1576   identity SEVERITY_TYPE_WARNING {\r
1577     base SEVERITY_TYPE;\r
1578     description\r
1579       "none";\r
1580   }\r
1581 \r
1582   identity SEVERITY_TYPE_MINOR {\r
1583     base SEVERITY_TYPE;\r
1584     description\r
1585       "none";\r
1586   }\r
1587 \r
1588   identity SEVERITY_TYPE_MAJOR {\r
1589     base SEVERITY_TYPE;\r
1590     description\r
1591       "none";\r
1592   }\r
1593 \r
1594   identity SEVERITY_TYPE_CRITICAL {\r
1595     base SEVERITY_TYPE;\r
1596     description\r
1597       "none";\r
1598   }\r
1599 \r
1600   identity SEVERITY_TYPE_NOT_YET_DEFINED {\r
1601     base SEVERITY_TYPE;\r
1602     description\r
1603       "none";\r
1604   }\r
1605 \r
1606   identity INTERFACE_STATUS_TYPE {\r
1607     description\r
1608       "none";\r
1609   }\r
1610 \r
1611   identity INTERFACE_STATUS_TYPE_UP {\r
1612     base INTERFACE_STATUS_TYPE;\r
1613     description\r
1614       "Ready to pass packets.";\r
1615   }\r
1616 \r
1617   identity INTERFACE_STATUS_TYPE_DOWN {\r
1618     base INTERFACE_STATUS_TYPE;\r
1619     description\r
1620       "The interface does not pass any packets.";\r
1621   }\r
1622 \r
1623   identity INTERFACE_STATUS_TYPE_TESTING {\r
1624     base INTERFACE_STATUS_TYPE;\r
1625     description\r
1626       "In some test mode.  No operational packets can be passed.";\r
1627   }\r
1628 \r
1629   identity INTERFACE_STATUS_TYPE_UNKNOWN {\r
1630     base INTERFACE_STATUS_TYPE;\r
1631     description\r
1632       "Status cannot be determined for some reason.";\r
1633   }\r
1634 \r
1635   identity INTERFACE_STATUS_TYPE_DORMANT {\r
1636     base INTERFACE_STATUS_TYPE;\r
1637     description\r
1638       "Waiting for some external event.";\r
1639   }\r
1640 \r
1641   identity INTERFACE_STATUS_TYPE_NOT_PRESENT {\r
1642     base INTERFACE_STATUS_TYPE;\r
1643     description\r
1644       "Some component (typically hardware) is missing.";\r
1645   }\r
1646 \r
1647   identity INTERFACE_STATUS_TYPE_LOWER_LAYER_DOWN {\r
1648     base INTERFACE_STATUS_TYPE;\r
1649     description\r
1650       "Down due to state of lower-layer interface(s).";\r
1651   }\r
1652 \r
1653   identity INTERFACE_STATUS_TYPE_ADMIN_DOWN {\r
1654     base INTERFACE_STATUS_TYPE;\r
1655     description\r
1656       "Down due to configuration.";\r
1657   }\r
1658 \r
1659   identity INTERFACE_STATUS_TYPE_NOT_YET_DEFINED {\r
1660     base INTERFACE_STATUS_TYPE;\r
1661     description\r
1662       "none";\r
1663   }\r
1664 \r
1665   /****************************************\r
1666    * package super-types\r
1667    **************************************/ \r
1668 \r
1669   typedef granularity-period-type {\r
1670     type identityref {\r
1671       base GRANULARITY_PERIOD_TYPE;\r
1672     }\r
1673     description\r
1674       "The enumeration with the options for granularity period of the performance data.";\r
1675   }\r
1676 \r
1677   typedef severity-type {\r
1678     type identityref {\r
1679       base SEVERITY_TYPE;\r
1680     }\r
1681     description\r
1682       "According to ITU-T M.3160";\r
1683   }\r
1684 \r
1685   typedef interface-status-type {\r
1686     type identityref {\r
1687       base INTERFACE_STATUS_TYPE;\r
1688     }\r
1689     description\r
1690       "Current Interface Status";\r
1691   }\r
1692 \r
1693   grouping problem-kind-severity-type {\r
1694     leaf problem-kind-name {\r
1695       type string;\r
1696       description\r
1697         "Name of the alarm according to supportedAlarmList";\r
1698     }\r
1699     leaf problem-kind-severity {\r
1700       type severity-type;\r
1701       default "SEVERITY_TYPE_NOT_YET_DEFINED";\r
1702       description\r
1703         "Severity of this type of alarm.";\r
1704     }\r
1705     description\r
1706       "none";\r
1707   }\r
1708 \r
1709   grouping available-queue-type {\r
1710     leaf queue-name {\r
1711       type queue-name-type;\r
1712       config false;\r
1713       description\r
1714         "Name of the queue.";\r
1715     }\r
1716     leaf max-queue-depth {\r
1717       type int32;\r
1718       units "Byte";\r
1719       default "-1";\r
1720       config false;\r
1721       description\r
1722         "Maximum configurable depth of the queue in Byte. openconfig-qos-interfaces.yang";\r
1723     }\r
1724     leaf queue-depth-configuration-is-avail {\r
1725       type boolean;\r
1726       default "false";\r
1727       config false;\r
1728       description\r
1729         "1 = Size of the individual queue is configurable (setting thresholdHigh of a WRED profile might be an alternative way of configuring the effective queue depth).";\r
1730     }\r
1731     leaf-list available-dropping-behavior-kind-list {\r
1732       type dropping-behavior-kind-type;\r
1733       config false;\r
1734       min-elements 1;\r
1735       max-elements 4;\r
1736       description\r
1737         "Lists the available types of behavior in case of congestions.";\r
1738     }\r
1739     leaf-list available-drop-precedence-kind-list {\r
1740       type drop-precedence-type;\r
1741       config false;\r
1742       min-elements 1;\r
1743       max-elements 3;\r
1744       description\r
1745         "Explicit list (ALL not to be used here) of drop precedences, which are available for this queue.";\r
1746     }\r
1747     leaf wred-profile-per-drop-precedence-is-available {\r
1748       type boolean;\r
1749       default "false";\r
1750       config false;\r
1751       description\r
1752         "1 = Separate WRED profiles can be defined for every drop precedence.";\r
1753     }\r
1754     leaf-list available-scheduling-kind-list {\r
1755       type scheduler-kind-type;\r
1756       config false;\r
1757       min-elements 1;\r
1758       max-elements 4;\r
1759       description\r
1760         "Lists the available types of scheduling.";\r
1761     }\r
1762     description\r
1763       "none";\r
1764   }\r
1765 \r
1766   grouping wred-behavior-type {\r
1767     leaf affected-drop-precedence {\r
1768       type drop-precedence-type;\r
1769       description\r
1770         "Definition of the drop precedence, for which the WRED profile shall apply on.";\r
1771     }\r
1772     leaf affected-protocol {\r
1773       type protocol-layer-type;\r
1774       description\r
1775         "Definition of the kind of protocol, for which the WRED profile shall apply on.";\r
1776     }\r
1777     leaf wred-profile {\r
1778       type leafref {\r
1779         path "/core-model:control-construct/core-model:profile-collection/core-model:profile/core-model:uuid";\r
1780         require-instance false;\r
1781       }\r
1782       description\r
1783         "Associates a WRED profile to the queue, respectively drop precedence. Attribute to point to an instance of Profile with profileName=='PROFILE_NAME_TYPE_WRED_PROFILE'.";\r
1784     }\r
1785     description\r
1786       "none";\r
1787   }\r
1788 \r
1789   grouping queue-behavior-type {\r
1790     leaf queue-name {\r
1791       type queue-name-type;\r
1792       description\r
1793         "Name of the queue.";\r
1794     }\r
1795     leaf queue-depth {\r
1796       type int32;\r
1797       units "Byte";\r
1798       default "-1";\r
1799       description\r
1800         "Only relevant if (queueDepthConfigurationIsAvail==1). Size of the queue in Byte.";\r
1801     }\r
1802     leaf dropping-behavior-kind {\r
1803       type dropping-behavior-kind-type;\r
1804       default "DROPPING_BEHAVIOR_KIND_TYPE_NOT_YET_DEFINED";\r
1805       description\r
1806         "Defines the behavior in case of congestions.";\r
1807     }\r
1808     list wred-behavior-list {\r
1809       key "affected-drop-precedence affected-protocol";\r
1810       uses wred-behavior-type;\r
1811       description\r
1812         "Only relevant if (droppingBehaviorKind==WRED).";\r
1813     }\r
1814     leaf scheduler-kind {\r
1815       type scheduler-kind-type;\r
1816       default "SCHEDULER_KIND_TYPE_NOT_YET_DEFINED";\r
1817       description\r
1818         "Type of scheduler to be used for this queue.";\r
1819     }\r
1820     leaf weighting {\r
1821       type int8;\r
1822       units "%";\r
1823       default "-1";\r
1824       description\r
1825         "Only relevant if (schedulerKind==WFQ) OR (schedulerKind==DWRR) OR (schedulerKind==WRR). Serving rate for this weighted fair queueing queue as a percentage value.";\r
1826     }\r
1827     description\r
1828       "none";\r
1829   }\r
1830 \r
1831   grouping container-current-problem-type {\r
1832     leaf problem-name {\r
1833       type string;\r
1834       default "Problem name not specified.";\r
1835       config false;\r
1836       description\r
1837         "Name of the alarm according to Container::ContainerCapability::supportedAlarms";\r
1838     }\r
1839     uses current-problem;\r
1840     description\r
1841       "none";\r
1842   }\r
1843 \r
1844   grouping queue-utilization-type {\r
1845     leaf queue-name {\r
1846       type queue-name-type;\r
1847       config false;\r
1848       description\r
1849         "Name of the queue.";\r
1850     }\r
1851     leaf max-queue-length {\r
1852       type int32;\r
1853       units "Byte";\r
1854       default "-1";\r
1855       config false;\r
1856       description\r
1857         "Maximum observed queue length. openconfig-qos-interfaces.yang";\r
1858     }\r
1859     leaf avg-queue-length {\r
1860       type int32;\r
1861       units "Byte";\r
1862       default "-1";\r
1863       config false;\r
1864       description\r
1865         "Average observed queue length. openconfig-qos-interfaces.yang";\r
1866     }\r
1867     description\r
1868       "none";\r
1869   }\r
1870 \r
1871   grouping container-performance-type {\r
1872     leaf tx-ethernet-bytes-max-s {\r
1873       type int32;\r
1874       units "Bytes/s";\r
1875       default "-1";\r
1876       config false;\r
1877       description\r
1878         "Counts the number of Bytes of Ethernet traffic (before header compression) transmitted within a second and keeps the highest value within the measurement period. Field to be left blank for all types of TDM containers.";\r
1879     }\r
1880     leaf tx-ethernet-bytes-max-m {\r
1881       type int64;\r
1882       units "Bytes/min";\r
1883       default "-1";\r
1884       config false;\r
1885       description\r
1886         "Counts the number of Bytes of Ethernet traffic (before header compression) transmitted within a minute and keeps the highest value with in the measurement period. Field to be left blank for all types of TDM containers.";\r
1887     }\r
1888     leaf tx-ethernet-bytes-sum {\r
1889       type int64;\r
1890       units "Bytes";\r
1891       default "-1";\r
1892       config false;\r
1893       description\r
1894         "Total number of Bytes of Ethernet traffic (before header compression) transmitted (in direction out of the device) during the measurement period. Field to be left blank for all types of TDM containers.";\r
1895     }\r
1896     list queue-utilization-list {\r
1897       key "queue-name";\r
1898       config false;\r
1899       max-elements 8;\r
1900       uses queue-utilization-type;\r
1901       description\r
1902         "Utilization of the respective queue. openconfig-qos-interfaces.yang";\r
1903     }\r
1904     leaf fec-corrected-blocks {\r
1905       type int32;\r
1906       units "Blocks";\r
1907       default "-1";\r
1908       config false;\r
1909       description\r
1910         "802.3 according to 30.5.1.1.17 aFECCorrectedBlocks and 30.11.2.1.8 aPMEFECCorrectedBlocks and 45.2.1.94 10GBASE-R FEC corrected blocks counter. Counts received blocks that have been corrected by the Forward Error Correction (FEC) function.";\r
1911     }\r
1912     leaf fec-uncorrectable-blocks {\r
1913       type int32;\r
1914       units "Blocks";\r
1915       default "-1";\r
1916       config false;\r
1917       description\r
1918         "802.3 according to 30.5.1.1.18 aFECUncorrectableBlocks and 30.11.2.1.9 aPMEFECUncorrectableBlocks and 45.2.1.95 10GBASE-R FEC uncorrected blocks counter. Counts received blocks that could not been corrected by the Forward Error Correction (FEC) function.";\r
1919     }\r
1920     leaf time-period {\r
1921       type int32;\r
1922       units "s";\r
1923       default "-1";\r
1924       config false;\r
1925       description\r
1926         "Total length of the measurement period in seconds.";\r
1927     }\r
1928     description\r
1929       "Consolidated performance information of the Container.";\r
1930   }\r
1931 \r
1932   grouping container-current-performance-type {\r
1933     container performance-data {\r
1934       config false;\r
1935       uses container-performance-type;\r
1936       description\r
1937         "none";\r
1938     }\r
1939     uses current-performance;\r
1940     description\r
1941       "Turns performance information into current performance information by inheriting from OTN_CurrentData.";\r
1942   }\r
1943 \r
1944   grouping container-historical-performance-type {\r
1945     container performance-data {\r
1946       config false;\r
1947       uses container-performance-type;\r
1948       description\r
1949         "none";\r
1950     }\r
1951     uses historical-performance;\r
1952     description\r
1953       "Turns performance information into historical performance information by inheriting from OTN_HistoryData.";\r
1954   }\r
1955 }\r