blob: c348861d850602a3ce00a16d9a03cf5f56376443 [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
8 * Unless required by applicable law or agreed to in writing, software
9 * distributed under the License is distributed on an "AS IS" BASIS,
10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 * See the License for the specific language governing permissions and
12 * limitations under the License.
13 */
14/*
15 * NOTE: This file was generated, manual edits will be overwritten!
16 *
17 * Generated by 'goCodeGenerator.py':
18 * https://github.com/cboling/OMCI-parser/README.md
19 */
20
21package generated
22
23import "github.com/deckarep/golang-set"
24
25// XdslXtuCPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity xDSL xTU-C performance monitoring history data
27const XdslXtuCPerformanceMonitoringHistoryDataClassID ClassID = ClassID(112)
28
29var xdslxtucperformancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// XdslXtuCPerformanceMonitoringHistoryData (class ID #112)
32// This ME collects PM data on the xTUC to xTUR path as seen from the xTU-C. Instances of this ME
33// are created and deleted by the OLT.
34//
35// For a complete discussion of generic PM architecture, refer to clause I.4.
36//
37// Relationships
38// An instance of this ME is associated with an xDSL UNI.
39//
40// Attributes
41// Managed Entity Id
42// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
43// identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R,
44// setbycreate) (mandatory) (2-bytes)
45//
46// Interval End Time
47// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
48// (mandatory) (1-byte)
49//
50// Threshold Data 1_2 Id
51// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
52// that contain PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
53//
54// Loss Of Frame Seconds
55// Loss of frame seconds: (R) (mandatory) (2-bytes)
56//
57// Loss Of Signal Seconds
58// Loss of signal seconds: (R) (mandatory) (2-bytes)
59//
60// Loss Of Link Seconds
61// Loss of link seconds: (R) (mandatory) (2-bytes)
62//
63// Loss Of Power Seconds
64// Loss of power seconds: (R) (mandatory) (2-bytes)
65//
66// Errored Seconds Es
67// Errored seconds (ES): This attribute counts 1-s intervals with one or more CRC8 anomalies summed
68// over all received bearer channels, or one or more loss of signal (LOS) defects, or one or more
69// SEF defects, or one or more LPR defects. (R) (mandatory) (2-bytes)
70//
71// Severely Errored Seconds
72// (R) (mandatory) (2-bytes)
73//
74// Line Initializations
75// Line initializations: This attribute counts the total number of full initializations attempted
76// on the line, both successful and failed. (R) (mandatory) (2-bytes)
77//
78// Failed Line Initializations
79// Failed line initializations: This attribute counts the total number of failed full
80// initializations during the accumulation period. A failed full initialization occurs when
81// showtime is not reached at the end of the full initialization procedure. (R) (mandatory)
82// (2-bytes)
83//
84// Short Initializations
85// Short initializations: This attribute counts the total number of fast retrains or short
86// initializations attempted on the line, successful and failed. Fast retrain is defined in [ITUT
87// G.992.2]. Short initialization is defined in [ITUT-G.992.3] and [ITUT G.992.4]. (R) (optional)
88// (2-bytes)
89//
90// Failed Short Initializations
91// (R) (optional) (2-bytes)
92//
93// Fec Seconds
94// FEC seconds: This attribute counts seconds during which there was an FEC anomaly. (R)
95// (mandatory) (2-bytes)
96//
97// Unavailable Seconds
98// Unavailable seconds: This attribute counts 1-s intervals during which the xDSL UNI is
99// unavailable. The line becomes unavailable at the onset of 10 contiguous SES-Ls. The 10 SES-Ls
100// are included in unavailable time. Once unavailable, the line becomes available at the onset of
101// 10-contiguous seconds that are not severely errored. The 10-s with no SESLs are excluded from
102// unavailable time. Some attribute counts are inhibited during unavailability - see clause
103// 7.2.7.13 of [ITUT G.997.1]. (R) (mandatory) (2-bytes)
104//
105// Sos Success Count, Near End
106// SOS success count, near end: The SOS-SUCCESS-NE attribute is a count of the total number of
107// successful SOS procedures initiated by the near-end xTU on the line during the accumulation
108// period. Successful SOS is defined in clause-12.1.4 of [ITUT G.993.2]. (R) (optional) (2-bytes)
109//
110// Sos Success Count, Far End
111// SOS success count, far end: The SOS-SUCCESS-FE attribute is a count of the total number of
112// successful SOS procedures initiated by the far-end xTU on the line during the accumulation
113// period. Successful SOS is defined in clause 12.1.4 of [ITUT-G.993.2]. (R) (optional) (2-bytes)
114//
115type XdslXtuCPerformanceMonitoringHistoryData struct {
116 ManagedEntityDefinition
117 Attributes AttributeValueMap
118}
119
120func init() {
121 xdslxtucperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
122 Name: "XdslXtuCPerformanceMonitoringHistoryData",
123 ClassID: 112,
124 MessageTypes: mapset.NewSetWith(
125 Create,
126 Delete,
127 Get,
128 Set,
129 ),
130 AllowedAttributeMask: 0xffff,
131 AttributeDefinitions: AttributeDefinitionMap{
132 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
133 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
134 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
135 3: Uint16Field("LossOfFrameSeconds", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
136 4: Uint16Field("LossOfSignalSeconds", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
137 5: Uint16Field("LossOfLinkSeconds", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
138 6: Uint16Field("LossOfPowerSeconds", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
139 7: Uint16Field("ErroredSecondsEs", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
140 8: Uint16Field("SeverelyErroredSeconds", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
141 9: Uint16Field("LineInitializations", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
142 10: Uint16Field("FailedLineInitializations", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
143 11: Uint16Field("ShortInitializations", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, true, false, 11),
144 12: Uint16Field("FailedShortInitializations", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, true, false, 12),
145 13: Uint16Field("FecSeconds", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
146 14: Uint16Field("UnavailableSeconds", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14),
147 15: Uint16Field("SosSuccessCount,NearEnd", CounterAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, true, false, 15),
148 16: Uint16Field("SosSuccessCount,FarEnd", CounterAttributeType, 0x0001, 0, mapset.NewSetWith(Read), false, true, false, 16),
149 },
150 Access: CreatedByOlt,
151 Support: UnknownSupport,
152 }
153}
154
155// NewXdslXtuCPerformanceMonitoringHistoryData (class ID 112) creates the basic
156// Managed Entity definition that is used to validate an ME of this type that
157// is received from or transmitted to the OMCC.
158func NewXdslXtuCPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
159 return NewManagedEntity(*xdslxtucperformancemonitoringhistorydataBME, params...)
160}