blob: 56c4b261145a1040db587d53c44d6e5a9d38ea8d [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// XgPonDownstreamManagementPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
29// Managed entity XG-PON downstream management performance monitoring history data
mpagenko836a1fd2021-11-01 16:12:42 +000030const XgPonDownstreamManagementPerformanceMonitoringHistoryDataClassID = ClassID(345) // 0x0159
Holger Hildebrandtfa074992020-03-27 15:42:06 +000031
32var xgpondownstreammanagementperformancemonitoringhistorydataBME *ManagedEntityDefinition
33
mpagenko836a1fd2021-11-01 16:12:42 +000034// XgPonDownstreamManagementPerformanceMonitoringHistoryData (Class ID: #345 / 0x0159)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000035// This ME collects PM data associated with the XG-PON TC layer. It collects counters associated
36// with downstream PLOAM and OMCI messages.
37//
38// For a complete discussion of generic PM architecture, refer to clause I.4.
39//
40// Relationships
41// An instance of this ME is associated with an ANI-G.
42//
43// Attributes
44// Managed Entity Id
mpagenko836a1fd2021-11-01 16:12:42 +000045// This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is
46// implicitly linked to an instance of the ANI-G. (R, set-by-create) (mandatory) (2-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000047//
48// Interval End Time
mpagenko836a1fd2021-11-01 16:12:42 +000049// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000050//
51// Threshold Data 1_2 Id
52// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
53// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
54// data 2 ME is optional. (R,-W, set-by-create) (mandatory) (2-bytes)
55//
56// Ploam Message Integrity Check Mic Error Count
57// PLOAM message integrity check (MIC) error count: This attribute counts MIC errors detected in
58// downstream PLOAM messages, either directed to this ONU or broadcast to all ONUs. (R) (optional)
59// (4-bytes)
60//
61// Downstream Ploam Messages Count
mpagenko836a1fd2021-11-01 16:12:42 +000062// This attribute counts PLOAM messages received, either directed to this ONU or broadcast to all
63// ONUs. (R) (optional) (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000064//
65// Profile Messages Received
mpagenko836a1fd2021-11-01 16:12:42 +000066// This attribute counts the number of profile messages received, either directed to this ONU or
67// broadcast to all ONUs. In [ITU-T G.9807.1], this attribute is used for received burst_profile
68// message count. (R) (optional) (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000069//
70// Ranging_Time Messages Received
mpagenko836a1fd2021-11-01 16:12:42 +000071// This attribute counts the number of ranging_time messages received, either directed to this ONU
72// or broadcast to all ONUs. (R) (mandatory) (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000073//
74// Deactivate_Onu_Id Messages Received
75// Deactivate_ONU-ID messages received: This attribute counts the number of deactivate_ONU-ID
76// messages received, either directed to this ONU or broadcast to all ONUs. Deactivate_ONU-ID
77// messages do not reset this counter. (R) (optional) (4-bytes)
78//
79// Disable_Serial_Number Messages Received
mpagenko836a1fd2021-11-01 16:12:42 +000080// This attribute counts the number of disable_serial_number messages received, whose serial number
81// specified this ONU. (R) (optional) (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000082//
83// Request_Registration Messages Received
mpagenko836a1fd2021-11-01 16:12:42 +000084// This attribute counts the number of request_registration messages received. (R) (optional)
85// (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000086//
87// Assign_Alloc_Id Messages Received
88// Assign_alloc-ID messages received: This attribute counts the number of assign_alloc-ID messages
89// received. (R) (optional) (4-bytes)
90//
91// Key_Control Messages Received
mpagenko836a1fd2021-11-01 16:12:42 +000092// This attribute counts the number of key_control messages received, either directed to this ONU
93// or broadcast to all ONUs. (R) (optional) (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000094//
95// Sleep_Allow Messages Received
mpagenko836a1fd2021-11-01 16:12:42 +000096// This attribute counts the number of sleep_allow messages received, either directed to this ONU
97// or broadcast to all ONUs. (R) (optional) (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000098//
99// Baseline Omci Messages Received Count
mpagenko836a1fd2021-11-01 16:12:42 +0000100// This attribute counts the number of OMCI messages received in the baseline message format. (R)
101// (optional) (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000102//
103// Extended Omci Messages Received Count
mpagenko836a1fd2021-11-01 16:12:42 +0000104// This attribute counts the number of OMCI messages received in the extended message format. (R)
105// (optional) (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000106//
107// Assign_Onu_Id Messages Received
108// Assign_ONU-ID messages received: This attribute counts the number of assign_ONU-ID messages
109// received since the last re-boot. (R) (optional) (4-bytes)
110//
111// Omci Mic Error Count
mpagenko836a1fd2021-11-01 16:12:42 +0000112// This attribute counts MIC errors detected in OMCI messages directed to this ONU. (R) (optional)
113// (4-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000114//
115type XgPonDownstreamManagementPerformanceMonitoringHistoryData struct {
116 ManagedEntityDefinition
117 Attributes AttributeValueMap
118}
119
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000120// Attribute name constants
121
122const XgPonDownstreamManagementPerformanceMonitoringHistoryData_IntervalEndTime = "IntervalEndTime"
123const XgPonDownstreamManagementPerformanceMonitoringHistoryData_ThresholdData12Id = "ThresholdData12Id"
124const XgPonDownstreamManagementPerformanceMonitoringHistoryData_PloamMessageIntegrityCheckMicErrorCount = "PloamMessageIntegrityCheckMicErrorCount"
125const XgPonDownstreamManagementPerformanceMonitoringHistoryData_DownstreamPloamMessagesCount = "DownstreamPloamMessagesCount"
126const XgPonDownstreamManagementPerformanceMonitoringHistoryData_ProfileMessagesReceived = "ProfileMessagesReceived"
127const XgPonDownstreamManagementPerformanceMonitoringHistoryData_RangingTimeMessagesReceived = "RangingTimeMessagesReceived"
128const XgPonDownstreamManagementPerformanceMonitoringHistoryData_DeactivateOnuIdMessagesReceived = "DeactivateOnuIdMessagesReceived"
129const XgPonDownstreamManagementPerformanceMonitoringHistoryData_DisableSerialNumberMessagesReceived = "DisableSerialNumberMessagesReceived"
130const XgPonDownstreamManagementPerformanceMonitoringHistoryData_RequestRegistrationMessagesReceived = "RequestRegistrationMessagesReceived"
131const XgPonDownstreamManagementPerformanceMonitoringHistoryData_AssignAllocIdMessagesReceived = "AssignAllocIdMessagesReceived"
132const XgPonDownstreamManagementPerformanceMonitoringHistoryData_KeyControlMessagesReceived = "KeyControlMessagesReceived"
133const XgPonDownstreamManagementPerformanceMonitoringHistoryData_SleepAllowMessagesReceived = "SleepAllowMessagesReceived"
134const XgPonDownstreamManagementPerformanceMonitoringHistoryData_BaselineOmciMessagesReceivedCount = "BaselineOmciMessagesReceivedCount"
135const XgPonDownstreamManagementPerformanceMonitoringHistoryData_ExtendedOmciMessagesReceivedCount = "ExtendedOmciMessagesReceivedCount"
136const XgPonDownstreamManagementPerformanceMonitoringHistoryData_AssignOnuIdMessagesReceived = "AssignOnuIdMessagesReceived"
137const XgPonDownstreamManagementPerformanceMonitoringHistoryData_OmciMicErrorCount = "OmciMicErrorCount"
138
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000139func init() {
140 xgpondownstreammanagementperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
141 Name: "XgPonDownstreamManagementPerformanceMonitoringHistoryData",
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000142 ClassID: XgPonDownstreamManagementPerformanceMonitoringHistoryDataClassID,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000143 MessageTypes: mapset.NewSetWith(
144 Create,
145 Delete,
146 Get,
147 Set,
Girish Gowdra5c5aaf42021-02-17 19:40:50 -0800148 GetCurrentData,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000149 ),
150 AllowedAttributeMask: 0xffff,
151 AttributeDefinitions: AttributeDefinitionMap{
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000152 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
153 1: ByteField(XgPonDownstreamManagementPerformanceMonitoringHistoryData_IntervalEndTime, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
154 2: Uint16Field(XgPonDownstreamManagementPerformanceMonitoringHistoryData_ThresholdData12Id, PointerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
155 3: Uint32Field(XgPonDownstreamManagementPerformanceMonitoringHistoryData_PloamMessageIntegrityCheckMicErrorCount, CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, true, false, 3),
156 4: Uint32Field(XgPonDownstreamManagementPerformanceMonitoringHistoryData_DownstreamPloamMessagesCount, CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, true, false, 4),
157 5: Uint32Field(XgPonDownstreamManagementPerformanceMonitoringHistoryData_ProfileMessagesReceived, CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, true, false, 5),
158 6: Uint32Field(XgPonDownstreamManagementPerformanceMonitoringHistoryData_RangingTimeMessagesReceived, CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
159 7: Uint32Field(XgPonDownstreamManagementPerformanceMonitoringHistoryData_DeactivateOnuIdMessagesReceived, CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, true, false, 7),
160 8: Uint32Field(XgPonDownstreamManagementPerformanceMonitoringHistoryData_DisableSerialNumberMessagesReceived, CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8),
161 9: Uint32Field(XgPonDownstreamManagementPerformanceMonitoringHistoryData_RequestRegistrationMessagesReceived, CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, true, false, 9),
162 10: Uint32Field(XgPonDownstreamManagementPerformanceMonitoringHistoryData_AssignAllocIdMessagesReceived, CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, true, false, 10),
163 11: Uint32Field(XgPonDownstreamManagementPerformanceMonitoringHistoryData_KeyControlMessagesReceived, CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, true, false, 11),
164 12: Uint32Field(XgPonDownstreamManagementPerformanceMonitoringHistoryData_SleepAllowMessagesReceived, CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, true, false, 12),
165 13: Uint32Field(XgPonDownstreamManagementPerformanceMonitoringHistoryData_BaselineOmciMessagesReceivedCount, CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, true, false, 13),
166 14: Uint32Field(XgPonDownstreamManagementPerformanceMonitoringHistoryData_ExtendedOmciMessagesReceivedCount, CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, true, false, 14),
167 15: Uint32Field(XgPonDownstreamManagementPerformanceMonitoringHistoryData_AssignOnuIdMessagesReceived, CounterAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, true, false, 15),
168 16: Uint32Field(XgPonDownstreamManagementPerformanceMonitoringHistoryData_OmciMicErrorCount, CounterAttributeType, 0x0001, 0, mapset.NewSetWith(Read), false, true, false, 16),
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000169 },
170 Access: CreatedByOlt,
171 Support: UnknownSupport,
Himani Chawlaac1f5ad2021-02-04 21:21:54 +0530172 Alarms: AlarmMap{
173 1: "PLOAM MIC error count",
174 2: "OMCI MIC error count",
175 },
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000176 }
177}
178
179// NewXgPonDownstreamManagementPerformanceMonitoringHistoryData (class ID 345) creates the basic
180// Managed Entity definition that is used to validate an ME of this type that
181// is received from or transmitted to the OMCC.
182func NewXgPonDownstreamManagementPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
183 return NewManagedEntity(*xgpondownstreammanagementperformancemonitoringhistorydataBME, params...)
184}