blob: 305f465f8390a5d254d1391d4cebef7c390c6bb0 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
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 */
20package generated
21
22import "github.com/deckarep/golang-set"
23
24const XdslXtuCPerformanceMonitoringHistoryDataClassId ClassID = ClassID(112)
25
26var xdslxtucperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// XdslXtuCPerformanceMonitoringHistoryData (class ID #112)
29// This ME collects PM data on the xTUC to xTUR path as seen from the xTU-C. Instances of this ME
30// are created and deleted by the OLT.
31//
32// For a complete discussion of generic PM architecture, refer to clause I.4.
33//
34// Relationships
35// An instance of this ME is associated with an xDSL UNI.
36//
37// Attributes
38// Managed Entity Id
39// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
40// identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R,
41// setbycreate) (mandatory) (2 bytes)
42//
43// Interval End Time
44// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
45// (mandatory) (1 byte)
46//
47// Threshold Data 1_2 Id
48// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
49// that contain PM threshold values. (R, W, setbycreate) (mandatory) (2 bytes)
50//
51// Loss Of Frame Seconds
52// Loss of frame seconds: (R) (mandatory) (2 bytes)
53//
54// Loss Of Signal Seconds
55// Loss of signal seconds: (R) (mandatory) (2 bytes)
56//
57// Loss Of Link Seconds
58// Loss of link seconds: (R) (mandatory) (2 bytes)
59//
60// Loss Of Power Seconds
61// Loss of power seconds: (R) (mandatory) (2 bytes)
62//
63// Errored Seconds Es
64// Errored seconds (ES): This attribute counts 1 s intervals with one or more CRC8 anomalies summed
65// over all received bearer channels, or one or more loss of signal (LOS) defects, or one or more
66// SEF defects, or one or more LPR defects. (R) (mandatory) (2 bytes)
67//
68// Severely Errored Seconds
69// (R) (mandatory) (2 bytes)
70//
71// Line Initializations
72// Line initializations: This attribute counts the total number of full initializations attempted
73// on the line, both successful and failed. (R) (mandatory) (2 bytes)
74//
75// Failed Line Initializations
76// Failed line initializations: This attribute counts the total number of failed full
77// initializations during the accumulation period. A failed full initialization occurs when
78// showtime is not reached at the end of the full initialization procedure. (R) (mandatory)
79// (2 bytes)
80//
81// Short Initializations
82// Short initializations: This attribute counts the total number of fast retrains or short
83// initializations attempted on the line, successful and failed. Fast retrain is defined in [ITUT
84// G.992.2]. Short initialization is defined in [ITUT G.992.3] and [ITUT G.992.4]. (R) (optional)
85// (2 bytes)
86//
87// Failed Short Initializations
88// (R) (optional) (2 bytes)
89//
90// Fec Seconds
91// FEC seconds: This attribute counts seconds during which there was an FEC anomaly. (R)
92// (mandatory) (2 bytes)
93//
94// Unavailable Seconds
95// Unavailable seconds: This attribute counts 1 s intervals during which the xDSL UNI is
96// unavailable. The line becomes unavailable at the onset of 10 contiguous SES-Ls. The 10 SES-Ls
97// are included in unavailable time. Once unavailable, the line becomes available at the onset of
98// 10 contiguous seconds that are not severely errored. The 10 s with no SESLs are excluded from
99// unavailable time. Some attribute counts are inhibited during unavailability – see clause
100// 7.2.7.13 of [ITUT G.997.1]. (R) (mandatory) (2 bytes)
101//
102// Sos Success Count, Near End
103// SOS success count, near end: The SOS-SUCCESS-NE attribute is a count of the total number of
104// successful SOS procedures initiated by the near-end xTU on the line during the accumulation
105// period. Successful SOS is defined in clause 12.1.4 of [ITUT G.993.2]. (R) (optional) (2 bytes)
106//
107// Sos Success Count, Far End
108// SOS success count, far end: The SOS-SUCCESS-FE attribute is a count of the total number of
109// successful SOS procedures initiated by the far-end xTU on the line during the accumulation
110// period. Successful SOS is defined in clause 12.1.4 of [ITUT G.993.2]. (R) (optional) (2 bytes)
111//
112type XdslXtuCPerformanceMonitoringHistoryData struct {
113 ManagedEntityDefinition
114 Attributes AttributeValueMap
115}
116
117func init() {
118 xdslxtucperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
119 Name: "XdslXtuCPerformanceMonitoringHistoryData",
120 ClassID: 112,
121 MessageTypes: mapset.NewSetWith(
122 Create,
123 Delete,
124 Get,
125 Set,
126 ),
127 AllowedAttributeMask: 0XFFFF,
128 AttributeDefinitions: AttributeDefinitionMap{
129 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
130 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
131 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
132 3: Uint16Field("LossOfFrameSeconds", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
133 4: Uint16Field("LossOfSignalSeconds", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
134 5: Uint16Field("LossOfLinkSeconds", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
135 6: Uint16Field("LossOfPowerSeconds", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
136 7: Uint16Field("ErroredSecondsEs", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
137 8: Uint16Field("SeverelyErroredSeconds", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
138 9: Uint16Field("LineInitializations", 0, mapset.NewSetWith(Read), false, false, false, false, 9),
139 10: Uint16Field("FailedLineInitializations", 0, mapset.NewSetWith(Read), false, false, false, false, 10),
140 11: Uint16Field("ShortInitializations", 0, mapset.NewSetWith(Read), false, false, true, false, 11),
141 12: Uint16Field("FailedShortInitializations", 0, mapset.NewSetWith(Read), false, false, true, false, 12),
142 13: Uint16Field("FecSeconds", 0, mapset.NewSetWith(Read), false, false, false, false, 13),
143 14: Uint16Field("UnavailableSeconds", 0, mapset.NewSetWith(Read), false, false, false, false, 14),
144 15: Uint16Field("SosSuccessCount,NearEnd", 0, mapset.NewSetWith(Read), false, false, true, false, 15),
145 16: Uint16Field("SosSuccessCount,FarEnd", 0, mapset.NewSetWith(Read), false, false, true, false, 16),
146 },
147 }
148}
149
150// NewXdslXtuCPerformanceMonitoringHistoryData (class ID 112 creates the basic
151// Managed Entity definition that is used to validate an ME of this type that
152// is received from the wire, about to be sent on the wire.
153func NewXdslXtuCPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
154 return NewManagedEntity(xdslxtucperformancemonitoringhistorydataBME, params...)
155}