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