blob: 45c976ee4d38f731d50d02e31d983ee1c3bb1b53 [file] [log] [blame]
Holger Hildebrandtfa074992020-03-27 15:42:06 +00001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +00004 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +00005 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +00008 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +00009 * http://www.apache.org/licenses/LICENSE-2.0
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000010 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +000011 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
Himani Chawlaac1f5ad2021-02-04 21:21:54 +053017/*
Holger Hildebrandtfa074992020-03-27 15:42:06 +000018 * NOTE: This file was generated, manual edits will be overwritten!
19 *
20 * Generated by 'goCodeGenerator.py':
21 * https://github.com/cboling/OMCI-parser/README.md
22 */
23
24package generated
25
26import "github.com/deckarep/golang-set"
27
28// TwdmChannelPloamPerformanceMonitoringHistoryDataPart3ClassID is the 16-bit ID for the OMCI
29// Managed entity TWDM channel PLOAM performance monitoring history data part 3
mpagenko836a1fd2021-11-01 16:12:42 +000030const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3ClassID = ClassID(448) // 0x01c0
Holger Hildebrandtfa074992020-03-27 15:42:06 +000031
32var twdmchannelploamperformancemonitoringhistorydatapart3BME *ManagedEntityDefinition
33
mpagenko836a1fd2021-11-01 16:12:42 +000034// TwdmChannelPloamPerformanceMonitoringHistoryDataPart3 (Class ID: #448 / 0x01c0)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000035// This ME collects remaining PLOAM-related PM data associated with the slot/circuit pack, hosting
36// one or more ANI-G MEs, for a specific TWDM channel. Instances of this ME are created and deleted
37// by the OLT.
38//
39// This ME contains the counters related to transmitted upstream PLOAM messages. All these counters
40// are characterized as optional in clause 14 of [ITU-T- G.989.3].
41//
42// For a complete discussion of generic PM architecture, refer to clause I.4.
43//
44// Relationships
45// An instance of this ME is associated with an instance of TWDM channel ME.
46//
47// Attributes
48// Managed Entity Id
mpagenko836a1fd2021-11-01 16:12:42 +000049// This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is
50// implicitly linked to an instance of the TWDM channel ME. (R, setbycreate) (mandatory) (2-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000051//
52// Interval End Time
mpagenko836a1fd2021-11-01 16:12:42 +000053// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000054//
55// Threshold Data 1_2 Id
56// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
57// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
58//
59// Upstream Ploam Message Count
mpagenko836a1fd2021-11-01 16:12:42 +000060// The aggregate counter of PLOAM messages, other than AK PLOAM MT, transmitted by the given ONU.
61// (R) (mandatory) (4-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000062//
63// Serial_Number_Onu In_Band Message Count
64// Serial_Number_ONU (in-band) message count: The counter of transmitted in-band Serial_Number_ONU
65// PLOAM messages. (R) (mandatory) (4-byte)
66//
67// Serial_Number_Onu Amcc Message Count
68// Serial_Number_ONU (AMCC) message count: The counter of transmitted auxiliary management and
69// control channel (AMCC) Serial_Number_ONU PLOAM messages. (R) (mandatory) (4-byte)
70//
71// Registration Message Count
mpagenko836a1fd2021-11-01 16:12:42 +000072// The counter of transmitted Registration PLOAM messages. (R) (mandatory) (4-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000073//
74// Key_Report Message Count
mpagenko836a1fd2021-11-01 16:12:42 +000075// The counter of transmitted Key_Report PLOAM messages. (R) (mandatory) (4-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000076//
77// Acknowledgement Message Count
mpagenko836a1fd2021-11-01 16:12:42 +000078// The counter of transmitted Registration PLOAM messages. (R) (mandatory) (4-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000079//
80// Sleep_Request Message Count
mpagenko836a1fd2021-11-01 16:12:42 +000081// The counter of transmitted Sleep_Request PLOAM messages. (R) (mandatory) (4-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000082//
83// Tuning_Response Ack_Nack Message Count
84// Tuning_Response (ACK/NACK) message count: The counter of transmitted Tuning_Response PLOAM
85// messages with ACK/NACK operation code. (R) (mandatory) (4-byte)
86//
87// Tuning_Response Complete_U_Rollback Message Count
88// Tuning_Response (Complete_u/Rollback) message count: The counter of transmitted Tuning_Response
89// PLOAM messages with Complete_u/Rollback operation code. (R) (mandatory) (4-byte)
90//
91// Power_Consumption_Report Message Count
mpagenko836a1fd2021-11-01 16:12:42 +000092// The counter of transmitted Power_Consumption_Report PLOAM messages. (R) (mandatory) (4-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000093//
94// Change_Power_Level Parameter Error Count
mpagenko836a1fd2021-11-01 16:12:42 +000095// The counter of transmitted Acknowledgement PLOAM messages with Parameter Error completion code
96// in response to Change_Power_Level PLOAM message. (R) (mandatory) (4-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000097//
98type TwdmChannelPloamPerformanceMonitoringHistoryDataPart3 struct {
99 ManagedEntityDefinition
100 Attributes AttributeValueMap
101}
102
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000103// Attribute name constants
104
105const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_IntervalEndTime = "IntervalEndTime"
106const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_ThresholdData12Id = "ThresholdData12Id"
107const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_UpstreamPloamMessageCount = "UpstreamPloamMessageCount"
108const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_SerialNumberOnuInBandMessageCount = "SerialNumberOnuInBandMessageCount"
109const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_SerialNumberOnuAmccMessageCount = "SerialNumberOnuAmccMessageCount"
110const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_RegistrationMessageCount = "RegistrationMessageCount"
111const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_KeyReportMessageCount = "KeyReportMessageCount"
112const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_AcknowledgementMessageCount = "AcknowledgementMessageCount"
113const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_SleepRequestMessageCount = "SleepRequestMessageCount"
114const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_TuningResponseAckNackMessageCount = "TuningResponseAckNackMessageCount"
115const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_TuningResponseCompleteURollbackMessageCount = "TuningResponseCompleteURollbackMessageCount"
116const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_PowerConsumptionReportMessageCount = "PowerConsumptionReportMessageCount"
117const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_ChangePowerLevelParameterErrorCount = "ChangePowerLevelParameterErrorCount"
118
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000119func init() {
120 twdmchannelploamperformancemonitoringhistorydatapart3BME = &ManagedEntityDefinition{
121 Name: "TwdmChannelPloamPerformanceMonitoringHistoryDataPart3",
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000122 ClassID: TwdmChannelPloamPerformanceMonitoringHistoryDataPart3ClassID,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000123 MessageTypes: mapset.NewSetWith(
124 Create,
125 Delete,
126 Get,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000127 Set,
mpagenko836a1fd2021-11-01 16:12:42 +0000128 GetCurrentData,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000129 ),
130 AllowedAttributeMask: 0xfff8,
131 AttributeDefinitions: AttributeDefinitionMap{
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000132 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
133 1: ByteField(TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_IntervalEndTime, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
134 2: Uint16Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_ThresholdData12Id, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
135 3: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_UpstreamPloamMessageCount, CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
136 4: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_SerialNumberOnuInBandMessageCount, CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
137 5: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_SerialNumberOnuAmccMessageCount, CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
138 6: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_RegistrationMessageCount, CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
139 7: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_KeyReportMessageCount, CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
140 8: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_AcknowledgementMessageCount, CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
141 9: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_SleepRequestMessageCount, CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
142 10: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_TuningResponseAckNackMessageCount, CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
143 11: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_TuningResponseCompleteURollbackMessageCount, CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
144 12: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_PowerConsumptionReportMessageCount, CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
145 13: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart3_ChangePowerLevelParameterErrorCount, CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000146 },
147 Access: CreatedByOlt,
148 Support: UnknownSupport,
Himani Chawlaac1f5ad2021-02-04 21:21:54 +0530149 Alarms: AlarmMap{
150 0: "Change_Power_Level parameter error count",
151 },
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000152 }
153}
154
155// NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart3 (class ID 448) 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 NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart3(params ...ParamData) (*ManagedEntity, OmciErrors) {
159 return NewManagedEntity(*twdmchannelploamperformancemonitoringhistorydatapart3BME, params...)
160}