1 module mac-interface-1-0 {
\r
3 namespace "urn:onf:yang:mac-interface-1-0";
\r
4 prefix mac-interface;
\r
6 import ietf-yang-types {
\r
9 import core-model-1-4 {
\r
14 "openBackhaul.com proposal to Open Networking Foundation (ONF)";
\r
16 "WG Web : https://github.com/openBackhaul/Overview
\r
17 WG List: MacInterface@openBackhaul.com
\r
18 Editor : Thorsten Heinze
\r
19 Email : Thorsten.Heinze@openBackhaul.com";
\r
21 "Technology specific interface definition for Ethernet MAC interfaces according to IEEE 802.1
\r
23 Copyright 2019 openBackhaul.com
\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
35 revision 2020-01-23 {
\r
37 "Model for the Transport SDN Pilot at Telefonica Germany.
\r
38 Please view https://github.com/openBackhaul/macInterface/issues for changes.";
\r
40 "https://github.com/openBackhaul/macInterface/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
43 revision 2019-07-11 {
\r
45 "Model for the Transport SDN Pilot at Telefonica Germany.
\r
46 Please view https://github.com/openBackhaul/macInterface/issues for changes.";
\r
48 "https://github.com/openBackhaul/macInterface/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
52 identity LAYER_PROTOCOL_NAME_TYPE_MAC_LAYER {
\r
53 base core-model:LAYER_PROTOCOL_NAME_TYPE;
\r
58 augment "/core-model:control-construct/core-model:logical-termination-point/core-model:layer-protocol" {
\r
59 when "derived-from-or-self(./core-model:layer-protocol-name, 'mac-interface:LAYER_PROTOCOL_NAME_TYPE_MAC_LAYER')";
\r
60 uses mac-interface-lp-spec;
\r
65 /****************************************
\r
66 * package notifications
\r
67 **************************************/
\r
69 notification object-creation-notification {
\r
70 uses object-creation-notification;
\r
75 grouping object-creation-notification {
\r
81 "Counts object creation notifications.";
\r
84 type yang:date-and-time;
\r
85 default "2010-11-20T14:00:00+01:00";
\r
90 leaf object-id-ref {
\r
92 path "/core-model:control-construct/core-model:logical-termination-point/core-model:uuid";
\r
93 require-instance false;
\r
101 default "Type of created object not specified.";
\r
110 notification object-deletion-notification {
\r
111 uses object-deletion-notification;
\r
116 grouping object-deletion-notification {
\r
122 "Counts object deletion notifications.";
\r
125 type yang:date-and-time;
\r
126 default "2010-11-20T14:00:00+01:00";
\r
131 leaf object-id-ref {
\r
133 path "/core-model:control-construct/core-model:logical-termination-point/core-model:uuid";
\r
134 require-instance false;
\r
144 notification attribute-value-changed-notification {
\r
145 uses attribute-value-changed-notification;
\r
150 grouping attribute-value-changed-notification {
\r
156 "Counts attribute value changed notifications.";
\r
159 type yang:date-and-time;
\r
160 default "2010-11-20T14:00:00+01:00";
\r
165 leaf object-id-ref {
\r
167 path "/core-model:control-construct/core-model:logical-termination-point/core-model:uuid";
\r
168 require-instance false;
\r
174 leaf attribute-name {
\r
176 default "Attribute name not specified.";
\r
179 "Name of the attribute that has been changed.";
\r
183 default "New value not specified.";
\r
186 "Attribute value converted to a string (xml, json, ...)";
\r
192 notification problem-notification {
\r
193 uses problem-notification;
\r
198 grouping problem-notification {
\r
204 "Counts problem notifications";
\r
207 type yang:date-and-time;
\r
208 default "2010-11-20T14:00:00+01:00";
\r
213 leaf object-id-ref {
\r
215 path "/core-model:control-construct/core-model:logical-termination-point/core-model:uuid";
\r
216 require-instance false;
\r
224 default "Problem name not specified.";
\r
227 "Name of the problem according to supportedAlarmList";
\r
230 type severity-type;
\r
231 default "SEVERITY_TYPE_WARNING";
\r
234 "Severity of the problem according to problemKindSeverity";
\r
240 /****************************************
\r
241 * grouping statements for object classes
\r
242 **************************************/
\r
243 /****************************************
\r
244 * package super-classes
\r
245 **************************************/
\r
247 grouping current-problem {
\r
248 leaf sequence-number {
\r
252 "Unique sequence number of the current problem object.";
\r
255 type yang:date-and-time;
\r
256 default "2010-11-20T14:00:00+01:00";
\r
259 "Time when the alarm was raised.";
\r
261 leaf problem-severity {
\r
262 type severity-type;
\r
263 default "SEVERITY_TYPE_NOT_YET_DEFINED";
\r
266 "Severity of the alarm.";
\r
272 grouping current-performance {
\r
274 type yang:date-and-time;
\r
275 default "2010-11-20T14:00:00+01:00";
\r
278 "The timestamp associated with when the current data was collected.";
\r
280 leaf suspect-interval-flag {
\r
285 "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
286 – Suspect data were detected by the actual resource doing data collection.
\r
287 – Transition of the administrativeState attribute to/from the 'lock' state.
\r
288 – Transition of the operationalState to/from the 'disabled' state.
\r
289 – Scheduler setting that inhibits the collection function.
\r
290 – The performance counters were reset during the interval.
\r
291 – The currentData (or subclass) object instance was created during the monitoring period.";
\r
293 leaf elapsed-time {
\r
299 "Number of seconds that elapsed since the last reset of the counter.";
\r
303 default "Scanner ID not defined.";
\r
308 leaf granularity-period {
\r
309 type granularity-period-type;
\r
312 "Time period between reset of the underlying counter.";
\r
318 grouping historical-performance {
\r
319 leaf suspect-interval-flag {
\r
324 "This attribute indicates that the data collected during the interval is suspect.";
\r
326 leaf history-data-id {
\r
328 default "History Data ID not defined.";
\r
333 leaf granularity-period {
\r
334 type granularity-period-type;
\r
337 "Time period between reset of the underlying counter.";
\r
339 leaf period-end-time {
\r
340 type yang:date-and-time;
\r
343 "Time when the counter values have been recorded and the counter reset.";
\r
349 grouping mac-interface-lp-spec {
\r
350 container mac-interface-pac {
\r
351 uses mac-interface-pac;
\r
359 grouping mac-interface-pac {
\r
360 container mac-interface-capability {
\r
362 uses mac-interface-capability;
\r
366 container mac-interface-configuration {
\r
367 uses mac-interface-configuration;
\r
371 container mac-interface-status {
\r
373 uses mac-interface-status;
\r
377 container mac-interface-current-problems {
\r
379 uses mac-interface-current-problems;
\r
383 container mac-interface-current-performance {
\r
385 uses mac-interface-current-performance;
\r
389 container mac-interface-historical-peformances {
\r
391 uses mac-interface-historical-peformances;
\r
399 grouping mac-interface-capability {
\r
400 leaf hardware-mac-address {
\r
402 default "00:00:00:00:00:00";
\r
405 "Hardware MAC address of the interface.";
\r
407 leaf mac-address-configuration-is-avail {
\r
412 "1 = Device supports overwriting the hardware MAC address.";
\r
414 leaf maximum-frame-size-min {
\r
420 "Minimum configurable value of the maximum Ethernet frame size in Byte.";
\r
422 leaf maximum-frame-size-max {
\r
428 "Maximum configurable value of the maximum Ethernet frame size in Byte.";
\r
430 leaf-list supported-frame-format-list {
\r
431 type frame-format-type;
\r
435 "List of supported Ethernet frame formats";
\r
437 leaf-list supported-flow-control-mode-list {
\r
438 type flow-control-mode-type;
\r
443 "List of potential configurations of the Flow Control.";
\r
445 leaf link-loss-forwarding-is-avail {
\r
450 "1 = Sending a Link Loss message in case of link failure is supported by the device.";
\r
452 leaf broadcast-frame-suppression-is-avail {
\r
457 "1 = Interface is supporting limiting the maximum share of broadcast frames.";
\r
459 leaf loop-port-shut-down-is-avail {
\r
464 "1 = Device is supporting automated shut down of ports, which are affected by an Ethernet loop.";
\r
466 leaf loop-detection-is-avail {
\r
471 "1 = Device is supporting a feature for detecting Ethernet loops on this interface.";
\r
473 leaf admin-shut-down-is-avail {
\r
478 "1 = Manual switching on and off of the interface without deleting it (underlying OSI network layers are also not affected) is available.";
\r
480 leaf-list supported-loop-back-kind-list {
\r
481 type loop-back-type;
\r
486 "List of supported kinds of looping back.";
\r
488 leaf maintenance-timer-range {
\r
490 default "Range of the maintenance timer not yet defined.";
\r
493 "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
495 leaf statistics-is-avail {
\r
500 "1 = Continuous statistics counters are available.";
\r
502 leaf-list supported-alarm-list {
\r
507 "Available alarms to be listed. Mandatory: 'MacInterfaceDown' and 'FrameSizeMissmatch'. Further alarms might be added by the device vendors.";
\r
509 leaf performance-monitoring-is-avail {
\r
514 "1 = Collection and aggregation of performance values is available.";
\r
520 grouping mac-interface-configuration {
\r
521 leaf interface-name {
\r
523 default "Interface name not yet defined.";
\r
525 "Description of the interface, could be a name, could be a number. Free text field to be filled by the operator.";
\r
527 leaf interface-is-on {
\r
531 "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
533 leaf mac-address-configuration-is-on {
\r
537 "Only relevant if (macAddressConfigurationIsAvail==1). 1 = Activates overwriting the hardware MAC address by MacInterfaceConfiguration::configuredMacAddress.";
\r
539 leaf configured-mac-address {
\r
541 default "00:00:00:00:00:00";
\r
543 "Only relevant if (macAddressConfigurationIsAvail==1 AND macAddressConfigurationIsOn==1). Overwriting the hardware MAC address with the configured value.";
\r
545 leaf maximum-frame-size {
\r
550 "This value describes the maximum size of the Ethernet frame (in Byte) before sending.";
\r
552 leaf fragmentation-allowed {
\r
553 type fragmentation-type;
\r
554 default "FRAGMENTATION_TYPE_NOT_YET_DEFINED";
\r
558 leaf transmitted-frame-format {
\r
559 type frame-format-type;
\r
560 default "FRAME_FORMAT_TYPE_NOT_YET_DEFINED";
\r
562 "Configuration of the format of the transmitted Ethernet frames.";
\r
564 leaf flow-control-mode {
\r
565 type flow-control-mode-type;
\r
566 default "FLOW_CONTROL_MODE_TYPE_NOT_YET_DEFINED";
\r
568 "Configures the mode of operation of Flow Control according to IEEE 802.3x on this interface.";
\r
570 leaf link-loss-forwarding-is-on {
\r
574 "1 = Sending a Link Loss message in case of link failure is activated.";
\r
576 leaf link-loss-forwarding-delay {
\r
581 "Delay (in 100ms steps) between a detected link failure and sending of a Link Loss message. In case of 1+1 hot stand by protection of a microwave, make sure configured value is higher than 5 (500ms).";
\r
583 leaf broadcast-frame-suppression-is-on {
\r
587 "1 = Limiting the share of broadcast frames is activated.";
\r
589 leaf maximum-share-of-broadcast-frames {
\r
594 "Threshold for Broadcast frames becoming discarded in %. Value range from 0 to 100.";
\r
596 leaf loop-port-shut-down-is-on {
\r
600 "1 = Feature for automated shut down in case of an Ethernet loop is activated on this interface.";
\r
602 leaf loop-detection-is-on {
\r
606 "Maintenance Feature. 1 = Checking for Ethernet loops on this interface is currently switched on.";
\r
608 leaf loop-back-kind-on {
\r
609 type loop-back-type;
\r
610 default "LOOP_BACK_TYPE_NOT_YET_DEFINED";
\r
612 "Maintenance Feature. Configuration of a loop back of Ethernet frames on this interface.";
\r
614 leaf maintenance-timer {
\r
619 "Time of existence of any maintenance configuration. 0 = maintenance timer is switched off. Valid values are defined in *Capability::maintenanceTimerRange.";
\r
621 leaf statistics-is-on {
\r
625 "Only relevant if (statisticsIsAvail==1). 1 = Continuous statistics counters are switched on.";
\r
627 list problem-kind-severity-list {
\r
628 key "problem-kind-name";
\r
630 uses problem-kind-severity-type;
\r
632 "Severity of each entry of the SupportedAlarmList to be configured.";
\r
634 leaf performance-monitoring-is-on {
\r
638 "Only relevant if (performanceMonitoringIsAvail==1). 1 = Collection and aggregation of performance values is switched on.";
\r
644 grouping mac-interface-status {
\r
645 leaf interface-status {
\r
646 type interface-status-type;
\r
647 default "INTERFACE_STATUS_TYPE_NOT_YET_DEFINED";
\r
650 "Operational status of the interface.";
\r
652 leaf mac-address-cur {
\r
654 default "00:00:00:00:00:00";
\r
657 "If (macAddressConfigurationIsAvail==0), maxAddressCur = MacInterfaceCapability::hardwareMacAddress. If (macAddressConfigurationIsAvail==1 AND macAddressConfigurationIsOn==1), maxAddressCur = MacInterfaceConfiguration::configuredMacAddress.";
\r
659 leaf received-ethernet-frame-format-cur {
\r
660 type frame-format-type;
\r
661 default "FRAME_FORMAT_TYPE_NOT_YET_DEFINED";
\r
664 "Ethernet frame format of the currently received frames.";
\r
666 leaf flow-control-mode-cur {
\r
667 type flow-control-mode-type;
\r
668 default "FLOW_CONTROL_MODE_TYPE_NOT_YET_DEFINED";
\r
671 "Currently operative mode (none, send, receive, both) of operation of the Flow Control according to IEEE 802.3x on this interface.";
\r
673 leaf loop-detection-result {
\r
674 type loop-detection-result-type;
\r
675 default "LOOP_DETECTION_RESULT_TYPE_NOT_YET_DEFINED";
\r
678 "Result of the Ethernet loop detection feature.";
\r
680 leaf loop-back-kind-up {
\r
681 type loop-back-type;
\r
682 default "LOOP_BACK_TYPE_NOT_YET_DEFINED";
\r
685 "The currently active (not just configured) type of loop back.";
\r
687 leaf statistics-is-up {
\r
692 "1 = Statistics are currently collected and aggregated.";
\r
694 leaf performance-monitoring-is-up {
\r
699 "1 = Performance values are currently collected and aggregated.";
\r
702 type yang:date-and-time;
\r
703 default "2010-11-20T14:00:00+01:00";
\r
706 "The timestamp associated with when the statistic values were read/retrieved.";
\r
708 leaf last-10-sec-frame-input-rate {
\r
714 "Frame receive rate at this MAC interface over the last 10 second interval.";
\r
716 leaf last-10-sec-frame-output-rate {
\r
722 "Frame transmit rate at this MAC interface over the last 10 second interval.";
\r
724 leaf total-frames-input {
\r
730 "The total number of Ethernet frames received at this MAC interface, including those received in error";
\r
732 leaf total-frames-output {
\r
738 "The total number of Ethernet frames sent from this MAC interface.";
\r
740 leaf forwarded-frames-input {
\r
746 "Number of input frames, 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
748 leaf forwarded-frames-output {
\r
754 "Number of frames, for which the device was not their final destination and for which it was successful in finding a path to their final destination. ";
\r
756 leaf unicast-frames-input {
\r
762 "Total number of received unicast frames.";
\r
764 leaf unicast-frames-output {
\r
770 "Total number of sent unicast frames.";
\r
772 leaf multicast-frames-input {
\r
778 "Total number of received multicast frames.";
\r
780 leaf multicast-frames-output {
\r
786 "Total number of sent multicast frames.";
\r
788 leaf broadcast-frames-input {
\r
794 "Total number of received broadcast frames.";
\r
796 leaf broadcast-frames-output {
\r
802 "Total number of sent broadcast frames.";
\r
804 leaf fragmented-frames-input {
\r
810 "Total number of received fragmented frames.";
\r
812 leaf errored-frames-input {
\r
818 "Total number of received errored frames.";
\r
820 leaf errored-frames-output {
\r
826 "Number of Ethernet frames, which were locally generated and discarded due to errors, including no route found to the destination.";
\r
828 leaf dropped-frames-input {
\r
834 "Total number of Ethernet frames dropped at the receiver. The number of input Ethernet frames, for which no problems were encountered to prevent their continued processing, but were discarded (e.g., for lack of buffer space).";
\r
836 leaf dropped-frames-output {
\r
842 "The number of output Ethernet frames, for which no problem was encountered to prevent their transmission to their destination, but were discarded (e.g., for lack of buffer space).";
\r
848 grouping mac-interface-current-problems {
\r
849 list current-problem-list {
\r
850 key "sequence-number";
\r
852 uses mac-interface-current-problem-type;
\r
856 leaf number-of-current-problems {
\r
861 "Number of alarms, which are currently active on this interface.";
\r
863 leaf time-of-latest-change {
\r
864 type yang:date-and-time;
\r
865 default "2010-11-20T14:00:00+01:00";
\r
868 "Date and time when the list of alarms has been changed for the last time.";
\r
874 grouping mac-interface-current-performance {
\r
875 list current-performance-data-list {
\r
876 key "granularity-period";
\r
880 uses mac-interface-current-performance-type;
\r
884 leaf number-of-current-performance-sets {
\r
889 "Number of sets of current performance values, which are provided in the list.";
\r
895 grouping mac-interface-historical-peformances {
\r
896 list historical-performace-data-list {
\r
897 key "granularity-period period-end-time";
\r
899 uses mac-interface-historical-performance-type;
\r
903 leaf number-of-historical-performance-sets {
\r
908 "Number of sets of historical performance values, which are provided in the list.";
\r
910 leaf time-of-latest-change {
\r
911 type yang:date-and-time;
\r
912 default "2010-11-20T14:00:00+01:00";
\r
915 "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
921 /****************************************
\r
922 * typedef statements
\r
923 **************************************/
\r
925 typedef loop-back-type {
\r
927 base LOOP_BACK_TYPE;
\r
933 typedef fragmentation-type {
\r
935 base FRAGMENTATION_TYPE;
\r
941 typedef frame-format-type {
\r
943 base FRAME_FORMAT_TYPE;
\r
949 typedef flow-control-mode-type {
\r
951 base FLOW_CONTROL_MODE_TYPE;
\r
957 typedef loop-detection-result-type {
\r
959 base LOOP_DETECTION_RESULT_TYPE;
\r
965 /*********************************************
\r
966 * grouping statements for complex data types
\r
967 *******************************************/
\r
969 identity LOOP_BACK_TYPE {
\r
974 identity LOOP_BACK_TYPE_NONE {
\r
975 base LOOP_BACK_TYPE;
\r
980 identity LOOP_BACK_TYPE_BACK_TO_LOCAL {
\r
981 base LOOP_BACK_TYPE;
\r
983 "Returning Ethernet frames of the local site on the Ethernet MAC interface back to the local site.";
\r
986 identity LOOP_BACK_TYPE_BACK_TO_REMOTE {
\r
987 base LOOP_BACK_TYPE;
\r
989 "Returning Ethernet frames of the remote site on the Ethernet MAC interface back to the remote site.";
\r
992 identity LOOP_BACK_TYPE_NOT_YET_DEFINED {
\r
993 base LOOP_BACK_TYPE;
\r
998 identity FRAGMENTATION_TYPE {
\r
1003 identity FRAGMENTATION_TYPE_DISABLE {
\r
1004 base FRAGMENTATION_TYPE;
\r
1009 identity FRAGMENTATION_TYPE_ENABLE_256_BYTE {
\r
1010 base FRAGMENTATION_TYPE;
\r
1015 identity FRAGMENTATION_TYPE_ENABLE_512_BYTE {
\r
1016 base FRAGMENTATION_TYPE;
\r
1021 identity FRAGMENTATION_TYPE_NOT_YET_DEFINED {
\r
1022 base FRAGMENTATION_TYPE;
\r
1027 identity FRAME_FORMAT_TYPE {
\r
1032 identity FRAME_FORMAT_TYPE_ETHERNET_2 {
\r
1033 base FRAME_FORMAT_TYPE;
\r
1038 identity FRAME_FORMAT_TYPE_802.2_SNAP {
\r
1039 base FRAME_FORMAT_TYPE;
\r
1044 identity FRAME_FORMAT_TYPE_802.2_LLC {
\r
1045 base FRAME_FORMAT_TYPE;
\r
1050 identity FRAME_FORMAT_TYPE_802.3 {
\r
1051 base FRAME_FORMAT_TYPE;
\r
1056 identity FRAME_FORMAT_TYPE_NOT_YET_DEFINED {
\r
1057 base FRAME_FORMAT_TYPE;
\r
1062 identity FLOW_CONTROL_MODE_TYPE {
\r
1067 identity FLOW_CONTROL_MODE_TYPE_NONE {
\r
1068 base FLOW_CONTROL_MODE_TYPE;
\r
1070 "Flow Control is switched off.";
\r
1073 identity FLOW_CONTROL_MODE_TYPE_SEND_ONLY {
\r
1074 base FLOW_CONTROL_MODE_TYPE;
\r
1076 "Only sending of pause frames according to IEEE 802.3x (Ethernet Flow Control).";
\r
1079 identity FLOW_CONTROL_MODE_TYPE_RECEIVE_ONLY {
\r
1080 base FLOW_CONTROL_MODE_TYPE;
\r
1082 "Only listening for incoming pause frames according to IEEE 802.3x (Ethernet Flow Control).";
\r
1085 identity FLOW_CONTROL_MODE_TYPE_SEND_AND_RECEIVE {
\r
1086 base FLOW_CONTROL_MODE_TYPE;
\r
1088 "Sending and listening for pause frames according to IEEE 802.3x (Ethernet Flow Control).";
\r
1091 identity FLOW_CONTROL_MODE_TYPE_AUTO_NEGOTIATION {
\r
1092 base FLOW_CONTROL_MODE_TYPE;
\r
1097 identity FLOW_CONTROL_MODE_TYPE_NOT_YET_DEFINED {
\r
1098 base FLOW_CONTROL_MODE_TYPE;
\r
1103 identity LOOP_DETECTION_RESULT_TYPE {
\r
1108 identity LOOP_DETECTION_RESULT_TYPE_LOOP_DETECTED {
\r
1109 base LOOP_DETECTION_RESULT_TYPE;
\r
1114 identity LOOP_DETECTION_RESULT_TYPE_NO_LOOP_DETECTED {
\r
1115 base LOOP_DETECTION_RESULT_TYPE;
\r
1120 identity LOOP_DETECTION_RESULT_TYPE_DETECTION_SWITCHED_OFF {
\r
1121 base LOOP_DETECTION_RESULT_TYPE;
\r
1126 identity LOOP_DETECTION_RESULT_TYPE_NOT_YET_DEFINED {
\r
1127 base LOOP_DETECTION_RESULT_TYPE;
\r
1132 identity GRANULARITY_PERIOD_TYPE {
\r
1137 identity GRANULARITY_PERIOD_TYPE_UNKNOWN {
\r
1138 base GRANULARITY_PERIOD_TYPE;
\r
1143 identity GRANULARITY_PERIOD_TYPE_PERIOD-15-MIN {
\r
1144 base GRANULARITY_PERIOD_TYPE;
\r
1149 identity GRANULARITY_PERIOD_TYPE_PERIOD-24-HOURS {
\r
1150 base GRANULARITY_PERIOD_TYPE;
\r
1155 identity GRANULARITY_PERIOD_TYPE_NOT_YET_DEFINED {
\r
1156 base GRANULARITY_PERIOD_TYPE;
\r
1161 identity SEVERITY_TYPE {
\r
1166 identity SEVERITY_TYPE_NON-ALARMED {
\r
1167 base SEVERITY_TYPE;
\r
1172 identity SEVERITY_TYPE_WARNING {
\r
1173 base SEVERITY_TYPE;
\r
1178 identity SEVERITY_TYPE_MAJOR {
\r
1179 base SEVERITY_TYPE;
\r
1184 identity SEVERITY_TYPE_MINOR {
\r
1185 base SEVERITY_TYPE;
\r
1190 identity SEVERITY_TYPE_CRITICAL {
\r
1191 base SEVERITY_TYPE;
\r
1196 identity SEVERITY_TYPE_NOT_YET_DEFINED {
\r
1197 base SEVERITY_TYPE;
\r
1202 identity INTERFACE_STATUS_TYPE {
\r
1207 identity INTERFACE_STATUS_TYPE_UP {
\r
1208 base INTERFACE_STATUS_TYPE;
\r
1210 "Ready to pass packets.";
\r
1213 identity INTERFACE_STATUS_TYPE_DOWN {
\r
1214 base INTERFACE_STATUS_TYPE;
\r
1216 "The interface does not pass any packets.";
\r
1219 identity INTERFACE_STATUS_TYPE_SHUT_DUE_LOOP {
\r
1220 base INTERFACE_STATUS_TYPE;
\r
1222 "Only relevant if (loopPortShutDownIsAvail==1) AND (loopPortShutDownIsOn==1). 1 = port has been automatically shut down, because an Ethernet loop has been detected on this interface.";
\r
1225 identity INTERFACE_STATUS_TYPE_TESTING {
\r
1226 base INTERFACE_STATUS_TYPE;
\r
1228 "In some test mode. No operational packets can be passed.";
\r
1231 identity INTERFACE_STATUS_TYPE_UNKNOWN {
\r
1232 base INTERFACE_STATUS_TYPE;
\r
1234 "Status cannot be determined for some reason.";
\r
1237 identity INTERFACE_STATUS_TYPE_DORMANT {
\r
1238 base INTERFACE_STATUS_TYPE;
\r
1240 "Waiting for some external event.";
\r
1243 identity INTERFACE_STATUS_TYPE_NOT_PRESENT {
\r
1244 base INTERFACE_STATUS_TYPE;
\r
1246 "Some component (typically hardware) is missing.";
\r
1249 identity INTERFACE_STATUS_TYPE_LOWER_LAYER_DOWN {
\r
1250 base INTERFACE_STATUS_TYPE;
\r
1252 "Down due to state of lower-layer interface(s).";
\r
1255 identity INTERFACE_STATUS_TYPE_ADMIN_DOWN {
\r
1256 base INTERFACE_STATUS_TYPE;
\r
1258 "Down due to configuration.";
\r
1261 identity INTERFACE_STATUS_TYPE_NOT_YET_DEFINED {
\r
1262 base INTERFACE_STATUS_TYPE;
\r
1267 /****************************************
\r
1268 * package super-types
\r
1269 **************************************/
\r
1271 typedef granularity-period-type {
\r
1272 type identityref {
\r
1273 base GRANULARITY_PERIOD_TYPE;
\r
1276 "The enumeration with the options for granularity period of the performance data.";
\r
1279 typedef severity-type {
\r
1280 type identityref {
\r
1281 base SEVERITY_TYPE;
\r
1287 typedef interface-status-type {
\r
1288 type identityref {
\r
1289 base INTERFACE_STATUS_TYPE;
\r
1292 "Current Interface Status";
\r
1295 grouping problem-kind-severity-type {
\r
1296 leaf problem-kind-name {
\r
1299 "Name of the alarm according to SupportedAlarmList";
\r
1301 leaf problem-kind-severity {
\r
1302 type severity-type;
\r
1303 default "SEVERITY_TYPE_NOT_YET_DEFINED";
\r
1305 "Severity of this type of alarm.";
\r
1311 grouping mac-interface-current-problem-type {
\r
1312 leaf problem-name {
\r
1314 default "NOT_YET_DEFINED";
\r
1316 "Name of the alarm according to SupportedAlarmList";
\r
1318 uses current-problem;
\r
1323 grouping mac-interface-performance-type {
\r
1324 leaf mac-control-frames-ingress {
\r
1330 "MAC layer control frames received on the interface.";
\r
1332 leaf mac-pause-frames-ingress {
\r
1338 "MAC layer Pause frames received on the interface.";
\r
1340 leaf oversized-frames-ingress {
\r
1346 "The total number of frames received that were longer than 1518 octets (excluding framing bits, but including FCS octets) and were otherwise well formed.";
\r
1348 leaf undersized-frames-ingress {
\r
1354 "The total number of frames received that were less than 64 octets long (excluding framing bits, but including FCS octets) and were otherwise well formed.";
\r
1356 leaf jabber-frames-ingres {
\r
1362 "Number of jabber frames received on the interface. Jabber frames are typically defined as oversize frames which also have a bad CRC. Implementations may use slightly different definitions of what constitutes a jabber frame. Often indicative of a NIC hardware problem.";
\r
1364 leaf fragmented-frames-ingress {
\r
1370 "The total number of frames received that were less than 64 octets in length (excluding framing bits but including FCS octets) and had either a bad Frame Check Sequence (FCS) with an integral number of octets (FCS Error) or a bad FCS with a non-integral number of octets (Alignment Error).";
\r
1372 leaf tagged-frames-ingress {
\r
1378 "Number of 802.1q tagged frames received on the interface.";
\r
1380 leaf mac-control-frames-egress {
\r
1386 "MAC layer control frames sent on the interface.";
\r
1388 leaf mac-pause-frames-egress {
\r
1394 "MAC layer Pause frames sent on the interface.";
\r
1396 leaf tagged-frames-egress {
\r
1402 "Number of 802.1q tagged frames sent on the interface.";
\r
1404 leaf frames-of-64-byte {
\r
1410 "Number of packets (including bad packets) received that were 64 bytes in length (excluding framing bits but including FCS bytes).";
\r
1412 leaf frames-of-65-to-127-byte {
\r
1418 "Number of good and bad packets received that were between 65 and 127 bytes in length (excluding framing bits but including FCS bytes).";
\r
1420 leaf frames-of-128-to-255-byte {
\r
1426 "Number of good and bad packets received that were between 128 and 255 bytes in length inclusive (excluding framing bits but including FCS bytes).";
\r
1428 leaf frames-of-256-to-511-byte {
\r
1434 "Number of good and bad packets received that were between 256 and 511 bytes in length inclusive (excluding framing bits but including FCS bytes).";
\r
1436 leaf frames-of-512-to-1023-byte {
\r
1442 "Number of good and bad packets received that were between 512 and 1023 bytes in length inclusive (excluding framing bits but including FCS bytes).";
\r
1444 leaf frames-of-1024-to-1518-byte {
\r
1450 "Number of good and bad packets received that were between 1024 and 1518 bytes in length inclusive (excluding framing bits but including FCS bytes).";
\r
1456 grouping mac-interface-current-performance-type {
\r
1457 container performance-data {
\r
1459 uses mac-interface-performance-type;
\r
1463 uses current-performance;
\r
1468 grouping mac-interface-historical-performance-type {
\r
1469 container performance-data {
\r
1471 uses mac-interface-performance-type;
\r
1475 uses historical-performance;
\r