Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 3 | * Copyright 2020-present Open Networking Foundation |
Chip Boling | 8cdd639 | 2022-01-27 08:43:37 -0600 | [diff] [blame] | 4 | * |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
Chip Boling | 8cdd639 | 2022-01-27 08:43:37 -0600 | [diff] [blame] | 8 | * |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Chip Boling | 8cdd639 | 2022-01-27 08:43:37 -0600 | [diff] [blame] | 10 | * |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
Chip Boling | 34ebcb6 | 2021-02-02 12:13:58 -0600 | [diff] [blame] | 17 | /* |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 18 | * NOTE: This file was generated, manual edits will be overwritten! |
| 19 | * |
| 20 | * Generated by 'goCodeGenerator.py': |
| 21 | * https://github.com/cboling/OMCI-parser/README.md |
| 22 | */ |
| 23 | |
| 24 | package generated |
| 25 | |
| 26 | import "github.com/deckarep/golang-set" |
| 27 | |
| 28 | // XdslXtuRPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity xDSL xTU-R performance monitoring history data |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 30 | const XdslXtuRPerformanceMonitoringHistoryDataClassID = ClassID(113) // 0x0071 |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 31 | |
| 32 | var xdslxturperformancemonitoringhistorydataBME *ManagedEntityDefinition |
| 33 | |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 34 | // XdslXtuRPerformanceMonitoringHistoryData (Class ID: #113 / 0x0071) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 35 | // This ME collects PM data of the xTUC to xTUR path as seen from the xTU-R. Instances of this ME |
| 36 | // are created and deleted by the OLT. |
| 37 | // |
| 38 | // For a complete discussion of generic PM architecture, refer to clause I.4. |
| 39 | // |
| 40 | // Relationships |
| 41 | // An instance of this ME is associated with an xDSL UNI. |
| 42 | // |
| 43 | // Attributes |
| 44 | // Managed Entity Id |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 45 | // This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is |
| 46 | // implicitly linked to an instance of the PPTP xDSL UNI part 1. (R, setbycreate) (mandatory) |
| 47 | // (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 48 | // |
| 49 | // Interval End Time |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 50 | // This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 51 | // |
| 52 | // Threshold Data 1_2 Id |
| 53 | // Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that |
| 54 | // contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold |
| 55 | // data 2 ME is optional. (R,-W, setbycreate) (mandatory) (2-bytes) |
| 56 | // |
| 57 | // Loss Of Frame Seconds |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 58 | // (R) (mandatory) (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 59 | // |
| 60 | // Loss Of Signal Seconds |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 61 | // (R) (mandatory) (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 62 | // |
| 63 | // Loss Of Power Seconds |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 64 | // (R) (mandatory) (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 65 | // |
| 66 | // Errored Seconds |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 67 | // This attribute counts 1-s intervals with one or more far end block error (FEBE) anomalies summed |
| 68 | // over all transmitted bearer channels, or one or more LOSFE defects, or one or more RDI defects, |
| 69 | // or one or more LPR-FE defects. (R) (mandatory) (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 70 | // |
| 71 | // Severely Errored Seconds |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 72 | // This attribute counts severely errored seconds (SES-LFE). An SES is declared if, during a 1-s |
| 73 | // interval, 18 or more FEBE anomalies were reported across the totality of bearer channels, or |
| 74 | // there were one or more far-end LOS defects, one or more RDI defects or one or more LPRFE |
| 75 | // defects. |
| 76 | // |
| 77 | // If the relevant Recommendation ([ITUT G.992.3], [ITUT G.992.5] or [ITUT G.993.2]) supports a 1-s |
| 78 | // normalized CRC-8 anomaly counter increment, the 1-s SES counter follows this value instead of |
| 79 | // counting FEBE anomalies directly. |
| 80 | // |
| 81 | // If a CRC is applied for multiple bearer channels, then each related FEBE anomaly is counted only |
| 82 | // once for the whole set of related bearer channels. |
| 83 | // |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 84 | // (R) (mandatory) (2-bytes) |
| 85 | // |
| 86 | // Fec Seconds |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 87 | // This attribute counts seconds during which there was an FEC anomaly. (R) (mandatory) (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 88 | // |
| 89 | // Unavailable Seconds |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 90 | // The far-end xDSL termination becomes unavailable at the onset of 10 contiguous SES-LFEs. The 10 |
| 91 | // SES-LFEs are included in unavailable time. Once unavailable, the far-end line becomes available |
| 92 | // at the onset of 10 contiguous seconds with no SES-LFEs. The 10-s with no SES-LFEs are excluded |
| 93 | // from unavailable time. Some attribute counts are inhibited during unavailability - see clause |
| 94 | // 7.2.7.13 of [ITUT G.997.1]. |
| 95 | // |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 96 | // (R) (mandatory) (2-bytes) |
| 97 | // |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 98 | // This attribute counts 1-s intervals during which the far-end xDSL termination is unavailable. |
| 99 | // |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 100 | // Leftr Defect Seconds |
| 101 | // "leftr" defect seconds: If retransmission is used, this parameter is a count of the seconds with |
| 102 | // a near-end ''leftr'' defect present - see clause 7.2.1.1.6 of [ITUT-G.997.1]. (R) (optional) |
| 103 | // (2-bytes) |
| 104 | // |
| 105 | // Error_Free Bits Counter |
| 106 | // Error-free bits counter: If retransmission is used, this parameter is a count of the number of |
| 107 | // error-free bits passed over the B1 reference point, divided by 216 - see clause 7.2.1.1.7 of |
| 108 | // [ITU-T G.997.1]. (R) (optional) (4-bytes) |
| 109 | // |
| 110 | // Minimum Error_Free Throughput Mineftr |
| 111 | // Minimum error-free throughput (MINEFTR): If retransmission is used, this parameter is the |
| 112 | // minimum error-free throughput in bits per second - see clause 7.2.1.1.8 of [ITUT-G.997.1]. (R) |
| 113 | // (optional) (4-bytes) |
| 114 | // |
| 115 | type XdslXtuRPerformanceMonitoringHistoryData struct { |
| 116 | ManagedEntityDefinition |
| 117 | Attributes AttributeValueMap |
| 118 | } |
| 119 | |
Chip Boling | 8cdd639 | 2022-01-27 08:43:37 -0600 | [diff] [blame] | 120 | // Attribute name constants |
| 121 | |
| 122 | const XdslXtuRPerformanceMonitoringHistoryData_IntervalEndTime = "IntervalEndTime" |
| 123 | const XdslXtuRPerformanceMonitoringHistoryData_ThresholdData12Id = "ThresholdData12Id" |
| 124 | const XdslXtuRPerformanceMonitoringHistoryData_LossOfFrameSeconds = "LossOfFrameSeconds" |
| 125 | const XdslXtuRPerformanceMonitoringHistoryData_LossOfSignalSeconds = "LossOfSignalSeconds" |
| 126 | const XdslXtuRPerformanceMonitoringHistoryData_LossOfPowerSeconds = "LossOfPowerSeconds" |
| 127 | const XdslXtuRPerformanceMonitoringHistoryData_ErroredSeconds = "ErroredSeconds" |
| 128 | const XdslXtuRPerformanceMonitoringHistoryData_SeverelyErroredSeconds = "SeverelyErroredSeconds" |
| 129 | const XdslXtuRPerformanceMonitoringHistoryData_FecSeconds = "FecSeconds" |
| 130 | const XdslXtuRPerformanceMonitoringHistoryData_UnavailableSeconds = "UnavailableSeconds" |
| 131 | const XdslXtuRPerformanceMonitoringHistoryData_LeftrDefectSeconds = "LeftrDefectSeconds" |
| 132 | const XdslXtuRPerformanceMonitoringHistoryData_ErrorFreeBitsCounter = "ErrorFreeBitsCounter" |
| 133 | const XdslXtuRPerformanceMonitoringHistoryData_MinimumErrorFreeThroughputMineftr = "MinimumErrorFreeThroughputMineftr" |
| 134 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 135 | func init() { |
| 136 | xdslxturperformancemonitoringhistorydataBME = &ManagedEntityDefinition{ |
| 137 | Name: "XdslXtuRPerformanceMonitoringHistoryData", |
Chip Boling | 8cdd639 | 2022-01-27 08:43:37 -0600 | [diff] [blame] | 138 | ClassID: XdslXtuRPerformanceMonitoringHistoryDataClassID, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 139 | MessageTypes: mapset.NewSetWith( |
| 140 | Create, |
| 141 | Delete, |
| 142 | Get, |
| 143 | Set, |
Chip Boling | 2d51f05 | 2021-02-09 09:04:15 -0600 | [diff] [blame] | 144 | GetCurrentData, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 145 | ), |
| 146 | AllowedAttributeMask: 0xfff0, |
| 147 | AttributeDefinitions: AttributeDefinitionMap{ |
Chip Boling | 8cdd639 | 2022-01-27 08:43:37 -0600 | [diff] [blame] | 148 | 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 149 | 1: ByteField(XdslXtuRPerformanceMonitoringHistoryData_IntervalEndTime, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1), |
| 150 | 2: Uint16Field(XdslXtuRPerformanceMonitoringHistoryData_ThresholdData12Id, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 151 | 3: Uint16Field(XdslXtuRPerformanceMonitoringHistoryData_LossOfFrameSeconds, CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3), |
| 152 | 4: Uint16Field(XdslXtuRPerformanceMonitoringHistoryData_LossOfSignalSeconds, CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4), |
| 153 | 5: Uint16Field(XdslXtuRPerformanceMonitoringHistoryData_LossOfPowerSeconds, CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5), |
| 154 | 6: Uint16Field(XdslXtuRPerformanceMonitoringHistoryData_ErroredSeconds, CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6), |
| 155 | 7: Uint16Field(XdslXtuRPerformanceMonitoringHistoryData_SeverelyErroredSeconds, CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7), |
| 156 | 8: Uint16Field(XdslXtuRPerformanceMonitoringHistoryData_FecSeconds, CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8), |
| 157 | 9: Uint16Field(XdslXtuRPerformanceMonitoringHistoryData_UnavailableSeconds, CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9), |
| 158 | 10: Uint16Field(XdslXtuRPerformanceMonitoringHistoryData_LeftrDefectSeconds, CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, true, false, 10), |
| 159 | 11: Uint32Field(XdslXtuRPerformanceMonitoringHistoryData_ErrorFreeBitsCounter, CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, true, false, 11), |
| 160 | 12: Uint32Field(XdslXtuRPerformanceMonitoringHistoryData_MinimumErrorFreeThroughputMineftr, CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, true, false, 12), |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 161 | }, |
| 162 | Access: CreatedByOlt, |
| 163 | Support: UnknownSupport, |
Chip Boling | 34ebcb6 | 2021-02-02 12:13:58 -0600 | [diff] [blame] | 164 | Alarms: AlarmMap{ |
| 165 | 0: "Loss of frame seconds", |
| 166 | 1: "Loss of signal seconds", |
| 167 | 2: "Loss of power seconds", |
| 168 | 3: "Errored seconds", |
| 169 | 4: "Severely errored seconds", |
| 170 | 5: "FEC seconds", |
| 171 | 6: "Unavailable seconds", |
| 172 | 7: "leftr defect seconds", |
| 173 | }, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 174 | } |
| 175 | } |
| 176 | |
| 177 | // NewXdslXtuRPerformanceMonitoringHistoryData (class ID 113) creates the basic |
| 178 | // Managed Entity definition that is used to validate an ME of this type that |
| 179 | // is received from or transmitted to the OMCC. |
| 180 | func NewXdslXtuRPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 181 | return NewManagedEntity(*xdslxturperformancemonitoringhistorydataBME, params...) |
| 182 | } |