blob: 188002cdb07f7951bcb88cf0a1557677125993a6 [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// XgPonTcPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity XG-PON TC performance monitoring history data
27const XgPonTcPerformanceMonitoringHistoryDataClassID ClassID = ClassID(344)
28
29var xgpontcperformancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// XgPonTcPerformanceMonitoringHistoryData (class ID #344)
32// This ME collects PM data associated with the XG-PON 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 1_2 Id
50// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
51// contains PM threshold values. (R,-W, set-by-create) (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 framing sublayer (FS) HEC error count management. (R)
60// (optional) (4-bytes)
61//
62// Unknown Profile Count
63// Unknown profile count: This attribute counts the number of grants received whose specified
64// profile was not known to the ONU. (R) (optional) (4-bytes)
65//
66// Transmitted Xg_Pon Encapsulation Method Xgem Frames
67// Transmitted XG-PON encapsulation method (XGEM) frames: This attribute counts the number of non-
68// idle XGEM frames transmitted. If a service data unit (SDU) is fragmented, each fragment is an
69// XGEM frame and is counted as such. (R) (mandatory) (4 bytes)
70//
71// Fragment Xgem Frames
72// Fragment XGEM frames: This attribute counts the number of XGEM frames that represent fragmented
73// SDUs, as indicated by the LF bit-= 0. (R) (optional) (4-bytes)
74//
75// Xgem Hec Lost Words Count
76// XGEM HEC lost words count: This attribute counts the number of 4-byte words lost because of an
77// XGEM frame HEC error. In general, all XGTC payload following the error is lost, until the next
78// PSBd event. (R) (optional) (4 bytes)
79//
80// Xgem Key Errors
81// (R) (mandatory) (4 bytes)
82//
83// Xgem Hec Error Count
84// XGEM HEC error count: This attribute counts the number of instances of an XGEM frame HEC error.
85// (R) (mandatory) (4 bytes)
86//
87// Transmitted Bytes In Non_Idle Xgem Frames
88// Transmitted bytes in non-idle XGEM frames: This attribute counts the number of transmitted bytes
89// in non-idle XGEM frames. (R) (mandatory) (8 bytes)
90//
91// Received Bytes In Non_Idle Xgem Frames
92// Received bytes in non-idle XGEM frames: This attribute counts the number of received bytes in
93// non-idle XGEM frames. (R) (optional) (8 bytes)
94//
95// Loss Of Downstream Synchronization Lods Event Count
96// Loss of downstream synchronization (LODS) event count: This attribute counts the number of state
97// transitions from O5.1 to O6. (R) (optional) (4-bytes)
98//
99// Lods Event Restored Count
100// LODS event restored count: This attribute counts the number of LODS cleared events. (R)
101// (optional) (4-bytes)
102//
103// Onu Reactivation By Lods Events
104// ONU reactivation by LODS events: This attribute counts the number of LODS events resulting in
105// ONU reactivation without synchronization being reacquired. (R) (optional) (4-bytes)
106//
107type XgPonTcPerformanceMonitoringHistoryData struct {
108 ManagedEntityDefinition
109 Attributes AttributeValueMap
110}
111
112func init() {
113 xgpontcperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
114 Name: "XgPonTcPerformanceMonitoringHistoryData",
115 ClassID: 344,
116 MessageTypes: mapset.NewSetWith(
117 Create,
118 Delete,
119 Get,
120 Set,
121 ),
122 AllowedAttributeMask: 0xfffe,
123 AttributeDefinitions: AttributeDefinitionMap{
124 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
125 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
126 2: Uint16Field("ThresholdData12Id", PointerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
127 3: Uint32Field("PsbdHecErrorCount", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, true, false, 3),
128 4: Uint32Field("XgtcHecErrorCount", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, true, false, 4),
129 5: Uint32Field("UnknownProfileCount", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, true, false, 5),
130 6: Uint32Field("TransmittedXgPonEncapsulationMethodXgemFrames", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
131 7: Uint32Field("FragmentXgemFrames", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, true, false, 7),
132 8: Uint32Field("XgemHecLostWordsCount", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8),
133 9: Uint32Field("XgemKeyErrors", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
134 10: Uint32Field("XgemHecErrorCount", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
135 11: Uint64Field("TransmittedBytesInNonIdleXgemFrames", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
136 12: Uint64Field("ReceivedBytesInNonIdleXgemFrames", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, true, false, 12),
137 13: Uint32Field("LossOfDownstreamSynchronizationLodsEventCount", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, true, false, 13),
138 14: Uint32Field("LodsEventRestoredCount", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, true, false, 14),
139 15: Uint32Field("OnuReactivationByLodsEvents", CounterAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, true, false, 15),
140 },
141 Access: CreatedByOlt,
142 Support: UnknownSupport,
143 }
144}
145
146// NewXgPonTcPerformanceMonitoringHistoryData (class ID 344) creates the basic
147// Managed Entity definition that is used to validate an ME of this type that
148// is received from or transmitted to the OMCC.
149func NewXgPonTcPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
150 return NewManagedEntity(*xgpontcperformancemonitoringhistorydataBME, params...)
151}