blob: 3a33214773af2213c1b0449612023433ff56e918 [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// TwdmChannelPloamPerformanceMonitoringHistoryDataPart2ClassID is the 16-bit ID for the OMCI
29// Managed entity TWDM channel PLOAM performance monitoring history data part 2
mpagenko836a1fd2021-11-01 16:12:42 +000030const TwdmChannelPloamPerformanceMonitoringHistoryDataPart2ClassID = ClassID(447) // 0x01bf
Holger Hildebrandtfa074992020-03-27 15:42:06 +000031
32var twdmchannelploamperformancemonitoringhistorydatapart2BME *ManagedEntityDefinition
33
mpagenko836a1fd2021-11-01 16:12:42 +000034// TwdmChannelPloamPerformanceMonitoringHistoryDataPart2 (Class ID: #447 / 0x01bf)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000035// This ME collects additional 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// The downstream PLOAM message counts of this ME include only the received PLOAM messages
40// pertaining to the given ONU, i.e.:
41//
42// - unicast PLOAM messages, addressed by ONU-ID;
43//
44// - broadcast PLOAM messages, addressed by serial number;
45//
46// - broadcast PLOAM messages, addressed to all ONUs on the PON.
47//
48// All these counters are characterized as optional in clause 14 of [ITU-T- G.989.3].
49//
50// For a complete discussion of generic PM architecture, refer to clause I.4.
51//
52// Relationships
53// An instance of this ME is associated with an instance of TWDM channel ME.
54//
55// Attributes
56// Managed Entity Id
mpagenko836a1fd2021-11-01 16:12:42 +000057// This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is
58// implicitly linked to an instance of the TWDM channel ME. (R, setbycreate) (mandatory) (2-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000059//
60// Interval End Time
mpagenko836a1fd2021-11-01 16:12:42 +000061// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000062//
63// Threshold Data 1_2 Id
64// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
65// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
66//
67// System_Profile Message Count
mpagenko836a1fd2021-11-01 16:12:42 +000068// The counter of received System_Profile PLOAM messages. (R) (mandatory) (4-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000069//
70// Channel_Profile Message Count
mpagenko836a1fd2021-11-01 16:12:42 +000071// The counter of received Channel_Profile PLOAM messages. (R) (mandatory) (4-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000072//
73// Burst_Profile Message Count
mpagenko836a1fd2021-11-01 16:12:42 +000074// The counter of received Burst_Profile PLOAM messages. (R) (mandatory) (4-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000075//
76// Assign_Onu_Id Message Count
77// Assign_ONU-ID message count: The counter of received Assign_ONU-ID PLOAM messages. (R)
78// (mandatory) (4-byte)
79//
80// Unsatisfied Adjust_Tx_Wavelength Requests
mpagenko836a1fd2021-11-01 16:12:42 +000081// The counter of Adjust_Tx_Wavelength requests not applied or partially applied due to target US
82// wavelength being out of Tx tuning range. (R) (mandatory) (4-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000083//
84// Deactivate_Onu_Id Message Count
85// Deactivate_ONU-ID message count: The counter of received Deactivate_ONU-ID PLOAM messages. (R)
86// (mandatory) (4-byte)
87//
88// Disable_Serial_Number Message Count
mpagenko836a1fd2021-11-01 16:12:42 +000089// The counter of received Disable_Serial_Number PLOAM messages. (R) (mandatory) (4-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000090//
91// Request_Registration Message Count
mpagenko836a1fd2021-11-01 16:12:42 +000092// The counter of received Request_Registration PLOAM messages. (R) (mandatory) (4-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000093//
94// Assign_Alloc_Id Message Count
95// Assign_Alloc-ID message count: The counter of received Assign_Alloc-ID PLOAM messages. (R)
96// (mandatory) (4-byte)
97//
98// Key_Control Message Count
mpagenko836a1fd2021-11-01 16:12:42 +000099// The counter of received Key_Control PLOAM messages. (R) (mandatory) (4-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000100//
101// Sleep_Allow Message Count
mpagenko836a1fd2021-11-01 16:12:42 +0000102// The counter of received Sleep_Allow PLOAM messages. (R) (mandatory) (4-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000103//
104// Tuning_Control_Request Message Count
105// Tuning_Control/Request message count: The counter of received Tuning_Control PLOAM messages with
106// Request operation code. (R) (mandatory) (4-byte)
107//
108// Tuning_Control_Complete_D Message Count
109// Tuning_Control/Complete_d message count: The counter of received Tuning_Control PLOAM messages
110// with Complete_d operation code. (R) (mandatory) (4-byte)
111//
112// Calibration_Request Message Count
mpagenko836a1fd2021-11-01 16:12:42 +0000113// The counter of received Calibration_Request PLOAM messages. (R) (mandatory) (4-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000114//
115type TwdmChannelPloamPerformanceMonitoringHistoryDataPart2 struct {
116 ManagedEntityDefinition
117 Attributes AttributeValueMap
118}
119
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000120// Attribute name constants
121
122const TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_IntervalEndTime = "IntervalEndTime"
123const TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_ThresholdData12Id = "ThresholdData12Id"
124const TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_SystemProfileMessageCount = "SystemProfileMessageCount"
125const TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_ChannelProfileMessageCount = "ChannelProfileMessageCount"
126const TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_BurstProfileMessageCount = "BurstProfileMessageCount"
127const TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_AssignOnuIdMessageCount = "AssignOnuIdMessageCount"
128const TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_UnsatisfiedAdjustTxWavelengthRequests = "UnsatisfiedAdjustTxWavelengthRequests"
129const TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_DeactivateOnuIdMessageCount = "DeactivateOnuIdMessageCount"
130const TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_DisableSerialNumberMessageCount = "DisableSerialNumberMessageCount"
131const TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_RequestRegistrationMessageCount = "RequestRegistrationMessageCount"
132const TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_AssignAllocIdMessageCount = "AssignAllocIdMessageCount"
133const TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_KeyControlMessageCount = "KeyControlMessageCount"
134const TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_SleepAllowMessageCount = "SleepAllowMessageCount"
135const TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_TuningControlRequestMessageCount = "TuningControlRequestMessageCount"
136const TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_TuningControlCompleteDMessageCount = "TuningControlCompleteDMessageCount"
137const TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_CalibrationRequestMessageCount = "CalibrationRequestMessageCount"
138
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000139func init() {
140 twdmchannelploamperformancemonitoringhistorydatapart2BME = &ManagedEntityDefinition{
141 Name: "TwdmChannelPloamPerformanceMonitoringHistoryDataPart2",
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000142 ClassID: TwdmChannelPloamPerformanceMonitoringHistoryDataPart2ClassID,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000143 MessageTypes: mapset.NewSetWith(
144 Create,
145 Delete,
146 Get,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000147 Set,
mpagenko836a1fd2021-11-01 16:12:42 +0000148 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(TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_IntervalEndTime, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
154 2: Uint16Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_ThresholdData12Id, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
155 3: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_SystemProfileMessageCount, CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
156 4: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_ChannelProfileMessageCount, CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
157 5: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_BurstProfileMessageCount, CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
158 6: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_AssignOnuIdMessageCount, CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
159 7: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_UnsatisfiedAdjustTxWavelengthRequests, CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
160 8: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_DeactivateOnuIdMessageCount, CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
161 9: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_DisableSerialNumberMessageCount, CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
162 10: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_RequestRegistrationMessageCount, CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
163 11: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_AssignAllocIdMessageCount, CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
164 12: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_KeyControlMessageCount, CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
165 13: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_SleepAllowMessageCount, CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
166 14: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_TuningControlRequestMessageCount, CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14),
167 15: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_TuningControlCompleteDMessageCount, CounterAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, false, false, 15),
168 16: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart2_CalibrationRequestMessageCount, CounterAttributeType, 0x0001, 0, mapset.NewSetWith(Read), false, false, 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 0: "Unsatisfied Adjust_Tx_Wavelength requests",
174 },
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000175 }
176}
177
178// NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart2 (class ID 447) creates the basic
179// Managed Entity definition that is used to validate an ME of this type that
180// is received from or transmitted to the OMCC.
181func NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
182 return NewManagedEntity(*twdmchannelploamperformancemonitoringhistorydatapart2BME, params...)
183}