blob: 4a9266adf218a757966c139034c8f0dd79322c6a [file] [log] [blame]
Holger Hildebrandtfa074992020-03-27 15:42:06 +00001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +00004 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +00005 * 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
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +00008 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +00009 * http://www.apache.org/licenses/LICENSE-2.0
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000010 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +000011 * 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 */
Himani Chawlaac1f5ad2021-02-04 21:21:54 +053017/*
Holger Hildebrandtfa074992020-03-27 15:42:06 +000018 * 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
24package generated
25
26import "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
mpagenko836a1fd2021-11-01 16:12:42 +000030const XdslXtuRPerformanceMonitoringHistoryDataClassID = ClassID(113) // 0x0071
Holger Hildebrandtfa074992020-03-27 15:42:06 +000031
32var xdslxturperformancemonitoringhistorydataBME *ManagedEntityDefinition
33
mpagenko836a1fd2021-11-01 16:12:42 +000034// XdslXtuRPerformanceMonitoringHistoryData (Class ID: #113 / 0x0071)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000035// 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
mpagenko836a1fd2021-11-01 16:12:42 +000045// 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)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000048//
49// Interval End Time
mpagenko836a1fd2021-11-01 16:12:42 +000050// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000051//
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
mpagenko836a1fd2021-11-01 16:12:42 +000058// (R) (mandatory) (2-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000059//
60// Loss Of Signal Seconds
mpagenko836a1fd2021-11-01 16:12:42 +000061// (R) (mandatory) (2-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000062//
63// Loss Of Power Seconds
mpagenko836a1fd2021-11-01 16:12:42 +000064// (R) (mandatory) (2-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000065//
66// Errored Seconds
mpagenko836a1fd2021-11-01 16:12:42 +000067// 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)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000070//
71// Severely Errored Seconds
mpagenko836a1fd2021-11-01 16:12:42 +000072// 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//
Holger Hildebrandtfa074992020-03-27 15:42:06 +000084// (R) (mandatory) (2-bytes)
85//
86// Fec Seconds
mpagenko836a1fd2021-11-01 16:12:42 +000087// This attribute counts seconds during which there was an FEC anomaly. (R) (mandatory) (2-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000088//
89// Unavailable Seconds
mpagenko836a1fd2021-11-01 16:12:42 +000090// 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//
Holger Hildebrandtfa074992020-03-27 15:42:06 +000096// (R) (mandatory) (2-bytes)
97//
mpagenko836a1fd2021-11-01 16:12:42 +000098// This attribute counts 1-s intervals during which the far-end xDSL termination is unavailable.
99//
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000100// 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//
115type XdslXtuRPerformanceMonitoringHistoryData struct {
116 ManagedEntityDefinition
117 Attributes AttributeValueMap
118}
119
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000120// Attribute name constants
121
122const XdslXtuRPerformanceMonitoringHistoryData_IntervalEndTime = "IntervalEndTime"
123const XdslXtuRPerformanceMonitoringHistoryData_ThresholdData12Id = "ThresholdData12Id"
124const XdslXtuRPerformanceMonitoringHistoryData_LossOfFrameSeconds = "LossOfFrameSeconds"
125const XdslXtuRPerformanceMonitoringHistoryData_LossOfSignalSeconds = "LossOfSignalSeconds"
126const XdslXtuRPerformanceMonitoringHistoryData_LossOfPowerSeconds = "LossOfPowerSeconds"
127const XdslXtuRPerformanceMonitoringHistoryData_ErroredSeconds = "ErroredSeconds"
128const XdslXtuRPerformanceMonitoringHistoryData_SeverelyErroredSeconds = "SeverelyErroredSeconds"
129const XdslXtuRPerformanceMonitoringHistoryData_FecSeconds = "FecSeconds"
130const XdslXtuRPerformanceMonitoringHistoryData_UnavailableSeconds = "UnavailableSeconds"
131const XdslXtuRPerformanceMonitoringHistoryData_LeftrDefectSeconds = "LeftrDefectSeconds"
132const XdslXtuRPerformanceMonitoringHistoryData_ErrorFreeBitsCounter = "ErrorFreeBitsCounter"
133const XdslXtuRPerformanceMonitoringHistoryData_MinimumErrorFreeThroughputMineftr = "MinimumErrorFreeThroughputMineftr"
134
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000135func init() {
136 xdslxturperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
137 Name: "XdslXtuRPerformanceMonitoringHistoryData",
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000138 ClassID: XdslXtuRPerformanceMonitoringHistoryDataClassID,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000139 MessageTypes: mapset.NewSetWith(
140 Create,
141 Delete,
142 Get,
143 Set,
Girish Gowdra5c5aaf42021-02-17 19:40:50 -0800144 GetCurrentData,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000145 ),
146 AllowedAttributeMask: 0xfff0,
147 AttributeDefinitions: AttributeDefinitionMap{
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000148 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),
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000161 },
162 Access: CreatedByOlt,
163 Support: UnknownSupport,
Himani Chawlaac1f5ad2021-02-04 21:21:54 +0530164 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 },
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000174 }
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.
180func NewXdslXtuRPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
181 return NewManagedEntity(*xdslxturperformancemonitoringhistorydataBME, params...)
182}