blob: a649da5456a33b4fa328b5d668708ba4c607cec8 [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Andrea Campanella7167ebb2020-02-24 09:56:38 +01003 * Copyright 2020-present Open Networking Foundation
4
Chip Boling6e27b352020-02-14 09:10:01 -06005 * 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 Campanella7167ebb2020-02-24 09:56:38 +01008
Chip Boling6e27b352020-02-14 09:10:01 -06009 * http://www.apache.org/licenses/LICENSE-2.0
Andrea Campanella7167ebb2020-02-24 09:56:38 +010010
Chip Boling6e27b352020-02-14 09:10:01 -060011 * 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 Boling34ebcb62021-02-02 12:13:58 -060017/*
Chip Boling6e27b352020-02-14 09:10:01 -060018 * 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
Chip Boling610117d2021-09-09 11:24:34 -050030const XdslXtuRPerformanceMonitoringHistoryDataClassID = ClassID(113) // 0x0071
Chip Boling6e27b352020-02-14 09:10:01 -060031
32var xdslxturperformancemonitoringhistorydataBME *ManagedEntityDefinition
33
Chip Boling610117d2021-09-09 11:24:34 -050034// XdslXtuRPerformanceMonitoringHistoryData (Class ID: #113 / 0x0071)
Chip Boling6e27b352020-02-14 09:10:01 -060035// 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 Boling610117d2021-09-09 11:24:34 -050045// 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 Boling6e27b352020-02-14 09:10:01 -060048//
49// Interval End Time
Chip Boling610117d2021-09-09 11:24:34 -050050// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Chip Boling6e27b352020-02-14 09:10:01 -060051//
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 Boling610117d2021-09-09 11:24:34 -050058// (R) (mandatory) (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060059//
60// Loss Of Signal Seconds
Chip Boling610117d2021-09-09 11:24:34 -050061// (R) (mandatory) (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060062//
63// Loss Of Power Seconds
Chip Boling610117d2021-09-09 11:24:34 -050064// (R) (mandatory) (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060065//
66// Errored Seconds
Chip Boling610117d2021-09-09 11:24:34 -050067// 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 Boling6e27b352020-02-14 09:10:01 -060070//
71// Severely Errored Seconds
Chip Boling610117d2021-09-09 11:24:34 -050072// 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 Boling6e27b352020-02-14 09:10:01 -060084// (R) (mandatory) (2-bytes)
85//
86// Fec Seconds
Chip Boling610117d2021-09-09 11:24:34 -050087// This attribute counts seconds during which there was an FEC anomaly. (R) (mandatory) (2-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060088//
89// Unavailable Seconds
Chip Boling610117d2021-09-09 11:24:34 -050090// 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 Boling6e27b352020-02-14 09:10:01 -060096// (R) (mandatory) (2-bytes)
97//
Chip Boling610117d2021-09-09 11:24:34 -050098// This attribute counts 1-s intervals during which the far-end xDSL termination is unavailable.
99//
Chip Boling6e27b352020-02-14 09:10:01 -0600100// 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
120func init() {
121 xdslxturperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
122 Name: "XdslXtuRPerformanceMonitoringHistoryData",
123 ClassID: 113,
124 MessageTypes: mapset.NewSetWith(
125 Create,
126 Delete,
127 Get,
128 Set,
Chip Boling2d51f052021-02-09 09:04:15 -0600129 GetCurrentData,
Chip Boling6e27b352020-02-14 09:10:01 -0600130 ),
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 Boling34ebcb62021-02-02 12:13:58 -0600149 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 Boling6e27b352020-02-14 09:10:01 -0600159 }
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.
165func NewXdslXtuRPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
166 return NewManagedEntity(*xdslxturperformancemonitoringhistorydataBME, params...)
167}