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 |
| 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 |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 8 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [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 | |
| 120 | func init() { |
| 121 | xdslxturperformancemonitoringhistorydataBME = &ManagedEntityDefinition{ |
| 122 | Name: "XdslXtuRPerformanceMonitoringHistoryData", |
| 123 | ClassID: 113, |
| 124 | MessageTypes: mapset.NewSetWith( |
| 125 | Create, |
| 126 | Delete, |
| 127 | Get, |
| 128 | Set, |
Chip Boling | 2d51f05 | 2021-02-09 09:04:15 -0600 | [diff] [blame] | 129 | GetCurrentData, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 130 | ), |
| 131 | AllowedAttributeMask: 0xfff0, |
| 132 | AttributeDefinitions: AttributeDefinitionMap{ |
| 133 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 134 | 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1), |
| 135 | 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 136 | 3: Uint16Field("LossOfFrameSeconds", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3), |
| 137 | 4: Uint16Field("LossOfSignalSeconds", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4), |
| 138 | 5: Uint16Field("LossOfPowerSeconds", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5), |
| 139 | 6: Uint16Field("ErroredSeconds", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6), |
| 140 | 7: Uint16Field("SeverelyErroredSeconds", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7), |
| 141 | 8: Uint16Field("FecSeconds", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8), |
| 142 | 9: Uint16Field("UnavailableSeconds", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9), |
| 143 | 10: Uint16Field("LeftrDefectSeconds", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, true, false, 10), |
| 144 | 11: Uint32Field("ErrorFreeBitsCounter", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, true, false, 11), |
| 145 | 12: Uint32Field("MinimumErrorFreeThroughputMineftr", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, true, false, 12), |
| 146 | }, |
| 147 | Access: CreatedByOlt, |
| 148 | Support: UnknownSupport, |
Chip Boling | 34ebcb6 | 2021-02-02 12:13:58 -0600 | [diff] [blame] | 149 | Alarms: AlarmMap{ |
| 150 | 0: "Loss of frame seconds", |
| 151 | 1: "Loss of signal seconds", |
| 152 | 2: "Loss of power seconds", |
| 153 | 3: "Errored seconds", |
| 154 | 4: "Severely errored seconds", |
| 155 | 5: "FEC seconds", |
| 156 | 6: "Unavailable seconds", |
| 157 | 7: "leftr defect seconds", |
| 158 | }, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 159 | } |
| 160 | } |
| 161 | |
| 162 | // NewXdslXtuRPerformanceMonitoringHistoryData (class ID 113) creates the basic |
| 163 | // Managed Entity definition that is used to validate an ME of this type that |
| 164 | // is received from or transmitted to the OMCC. |
| 165 | func NewXdslXtuRPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 166 | return NewManagedEntity(*xdslxturperformancemonitoringhistorydataBME, params...) |
| 167 | } |