blob: d22c7bb922f0419bee04cede305f286ce30637db [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 XgPonTcPerformanceMonitoringHistoryDataClassId ClassID = ClassID(344)
25
26var xgpontcperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// XgPonTcPerformanceMonitoringHistoryData (class ID #344)
29// This ME collects PM data associated with the XG-PON TC layer.
30//
31// For a complete discussion of generic PM architecture, refer to clause I.4.
32//
33// Relationships
34// An instance of this ME is associated with an ANI-G.
35//
36// Attributes
37// Managed Entity Id
38// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
39// identical ID, this ME is implicitly linked to an instance of the ANI-G. (R, set-by-create)
40// (mandatory) (2 bytes)
41//
42// Interval End Time
43// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
44// (mandatory) (1 byte)
45//
46// Threshold Data 1_2 Id
47// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
48// contains PM threshold values. (R, W, set-by-create) (mandatory) (2 bytes)
49//
50// Psbd Hec Error Count
51// PSBd HEC error count: This attribute counts HEC errors in any of the fields of the downstream
52// physical sync block. (R) (optional) (4 bytes)
53//
54// Xgtc Hec Error Count
55// XGTC HEC error count: This attribute counts HEC errors detected in the XGTC header. In [ITU-T
56// G.9807.1], this attribute is used for framing sublayer (FS) HEC error count management. (R)
57// (optional) (4 bytes)
58//
59// Unknown Profile Count
60// Unknown profile count: This attribute counts the number of grants received whose specified
61// profile was not known to the ONU. (R) (optional) (4 bytes)
62//
63// Transmitted Xg_Pon Encapsulation Method Xgem Frames
64// Transmitted XG-PON encapsulation method (XGEM) frames: This attribute counts the number of non-
65// idle XGEM frames transmitted. If a service data unit (SDU) is fragmented, each fragment is an
66// XGEM frame and is counted as such. (R) (mandatory) (4 bytes)
67//
68// Fragment Xgem Frames
69// Fragment XGEM frames: This attribute counts the number of XGEM frames that represent fragmented
70// SDUs, as indicated by the LF bit = 0. (R) (optional) (4 bytes)
71//
72// Xgem Hec Lost Words Count
73// XGEM HEC lost words count: This attribute counts the number of 4 byte words lost because of an
74// XGEM frame HEC error. In general, all XGTC payload following the error is lost, until the next
75// PSBd event. (R) (optional) (4 bytes)
76//
77// Xgem Key Errors
78// (R) (mandatory) (4 bytes)
79//
80// Xgem Hec Error Count
81// XGEM HEC error count: This attribute counts the number of instances of an XGEM frame HEC error.
82// (R) (mandatory) (4 bytes)
83//
84// Transmitted Bytes In Non_Idle Xgem Frames
85// Transmitted bytes in non-idle XGEM frames: This attribute counts the number of transmitted bytes
86// in non-idle XGEM frames. (R) (mandatory) (8 bytes)
87//
88// Received Bytes In Non_Idle Xgem Frames
89// Received bytes in non-idle XGEM frames: This attribute counts the number of received bytes in
90// non-idle XGEM frames. (R) (optional) (8 bytes)
91//
92// Loss Of Downstream Synchronization Lods Event Count
93// Loss of downstream synchronization (LODS) event count: This attribute counts the number of state
94// transitions from O5.1 to O6. (R) (optional) (4 bytes)
95//
96// Lods Event Restored Count
97// LODS event restored count: This attribute counts the number of LODS cleared events. (R)
98// (optional) (4 bytes)
99//
100// Onu Reactivation By Lods Events
101// ONU reactivation by LODS events: This attribute counts the number of LODS events resulting in
102// ONU reactivation without synchronization being reacquired. (R) (optional) (4 bytes)
103//
104type XgPonTcPerformanceMonitoringHistoryData struct {
105 ManagedEntityDefinition
106 Attributes AttributeValueMap
107}
108
109func init() {
110 xgpontcperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
111 Name: "XgPonTcPerformanceMonitoringHistoryData",
112 ClassID: 344,
113 MessageTypes: mapset.NewSetWith(
114 Create,
115 Delete,
116 Get,
117 Set,
118 ),
119 AllowedAttributeMask: 0XFFFE,
120 AttributeDefinitions: AttributeDefinitionMap{
121 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
122 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
123 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
124 3: Uint32Field("PsbdHecErrorCount", 0, mapset.NewSetWith(Read), false, false, true, false, 3),
125 4: Uint32Field("XgtcHecErrorCount", 0, mapset.NewSetWith(Read), false, false, true, false, 4),
126 5: Uint32Field("UnknownProfileCount", 0, mapset.NewSetWith(Read), false, false, true, false, 5),
127 6: Uint32Field("TransmittedXgPonEncapsulationMethodXgemFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
128 7: Uint32Field("FragmentXgemFrames", 0, mapset.NewSetWith(Read), false, false, true, false, 7),
129 8: Uint32Field("XgemHecLostWordsCount", 0, mapset.NewSetWith(Read), false, false, true, false, 8),
130 9: Uint32Field("XgemKeyErrors", 0, mapset.NewSetWith(Read), false, false, false, false, 9),
131 10: Uint32Field("XgemHecErrorCount", 0, mapset.NewSetWith(Read), false, false, false, false, 10),
132 11: Uint64Field("TransmittedBytesInNonIdleXgemFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 11),
133 12: Uint64Field("ReceivedBytesInNonIdleXgemFrames", 0, mapset.NewSetWith(Read), false, false, true, false, 12),
134 13: Uint32Field("LossOfDownstreamSynchronizationLodsEventCount", 0, mapset.NewSetWith(Read), false, false, true, false, 13),
135 14: Uint32Field("LodsEventRestoredCount", 0, mapset.NewSetWith(Read), false, false, true, false, 14),
136 15: Uint32Field("OnuReactivationByLodsEvents", 0, mapset.NewSetWith(Read), false, false, true, false, 15),
137 },
138 }
139}
140
141// NewXgPonTcPerformanceMonitoringHistoryData (class ID 344 creates the basic
142// Managed Entity definition that is used to validate an ME of this type that
143// is received from the wire, about to be sent on the wire.
144func NewXgPonTcPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
145 return NewManagedEntity(xgpontcperformancemonitoringhistorydataBME, params...)
146}