blob: 9ed820b668c500262a0a1c13c60c6fbaa60f49ad [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// TwdmChannelTuningPerformanceMonitoringHistoryDataPart2ClassID is the 16-bit ID for the OMCI
29// Managed entity TWDM channel tuning performance monitoring history data part 2
mpagenko836a1fd2021-11-01 16:12:42 +000030const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2ClassID = ClassID(450) // 0x01c2
Holger Hildebrandtfa074992020-03-27 15:42:06 +000031
32var twdmchanneltuningperformancemonitoringhistorydatapart2BME *ManagedEntityDefinition
33
mpagenko836a1fd2021-11-01 16:12:42 +000034// TwdmChannelTuningPerformanceMonitoringHistoryDataPart2 (Class ID: #450 / 0x01c2)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000035// This ME collects additional tuning-control-related PM data associated with the slot/circuit
36// pack, hosting one or more ANI-G MEs, for a specific TWDM channel. Instances of this ME are
37// created and deleted by the OLT.
38//
39// The relevant events this ME is concerned with are counted towards the PM statistics associated
40// with the source TWDM channel. This ME contains the counters characterized as optional in clause
41// 14 of [ITU-T- G.989.3].
42//
43// For a complete discussion of generic PM architecture, refer to clause I.4.
44//
45// Relationships
46// An instance of this ME is associated with an instance of TWDM channel ME.
47//
48// Attributes
49// Managed Entity Id
mpagenko836a1fd2021-11-01 16:12:42 +000050// This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is
51// implicitly linked to an instance of the TWDM channel ME. (R, setbycreate) (mandatory) (2-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000052//
53// Interval End Time
mpagenko836a1fd2021-11-01 16:12:42 +000054// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000055//
56// Threshold Data 1_2 Id
57// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
58// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
59//
60// Tuning Control Requests Rejected_Ds_Albl
61// Tuning control requests rejected/DS_ALBL: The counter of transmitted Tuning_Response PLOAM
62// messages with NACK operation code and DS_ALBL response code, indicating downstream
63// administrative label inconsistency. (R) (mandatory) (4-byte)
64//
65// Tuning Control Requests Rejected_Ds_Void
66// Tuning control requests rejected/DS_VOID: The counter of transmitted Tuning_Response PLOAM
67// messages with NACK operation code and DS_VOID response code, indicating that the target
68// downstream wavelength channel descriptor is void. (R) (mandatory) (4-byte)
69//
70// Tuning Control Requests Rejected_Ds_Part
71// Tuning control requests rejected/DS_PART: The counter of transmitted Tuning_Response PLOAM
72// messages with NACK operation code and DS_PART response code, indicating that tuning request
73// involves channel partition violation. (R) (mandatory) (4-byte)
74//
75// Tuning Control Requests Rejected_Ds_Tunr
76// Tuning control requests rejected/DS_TUNR: The counter of transmitted Tuning_Response PLOAM
77// messages with NACK operation code and DS_TUNR response code, indicating that the target DS
78// wavelength channel is out of receiver tuning range. (R) (mandatory) (4-byte)
79//
80// Tuning Control Requests Rejected_Ds_Lnrt
81// Tuning control requests rejected/DS_LNRT: The counter of transmitted Tuning_Response PLOAM
82// messages with NACK operation code and DS_LNRT response code, indicating downstream line rate
83// inconsistency in the target channel. (R) (mandatory) (4-byte)
84//
85// Tuning Control Requests Rejected_Ds_Lncd
86// Tuning control requests rejected/DS_LNCD: The counter of transmitted Tuning_Response PLOAM
87// messages with NACK operation code and DS_LNCD response code, indicating downstream line code
88// inconsistency in the target channel. (R) (mandatory) (4-byte)
89//
90// Tuning Control Requests Rejected_Us_Albl
91// Tuning control requests rejected/US_ALBL: The counter of transmitted Tuning_Response PLOAM
92// messages with NACK operation code and US_ALBL response code, indicating upstream administrative
93// label inconsistency. (R) (mandatory) (4-byte)
94//
95// Tuning Control Requests Rejected_Us_Void
96// Tuning control requests rejected/US_VOID: The counter of transmitted Tuning_Response PLOAM
97// messages with NACK operation code and US_VOID response code, indicating that the target upstream
98// wavelength channel descriptor is void. (R) (mandatory) (4-byte)
99//
100// Tuning Control Requests Rejected_Us_Tunr
101// Tuning control requests rejected/US_TUNR: The counter of transmitted Tuning_Response PLOAM
102// messages with NACK operation code and US_TUNR response code, indicating that the target US
103// wavelength channel is out of transmitter tuning range. (R) (mandatory) (4-byte)
104//
105// Tuning Control Requests Rejected_Us_Clbr
106// Tuning control requests rejected/US_CLBR: The counter of transmitted Tuning_Response PLOAM
107// messages with NACK operation code and US_CLBR response code, indicating that the transmitter has
108// insufficient calibration accuracy in the target US wavelength channel. (R) (mandatory) (4-byte)
109//
110// Tuning Control Requests Rejected_Us_Lktp
111// Tuning control requests rejected/US_LKTP: The counter of transmitted Tuning_Response PLOAM
112// messages with NACK operation code and US_LKTP response code, indicating upstream optical link
113// type inconsistency. (R) (mandatory) (4-byte)
114//
115// Tuning Control Requests Rejected_Us_Lnrt
116// Tuning control requests rejected/US_LNRT: The counter of transmitted Tuning_Response PLOAM
117// messages with NACK operation code and US_LNRT response code, indicating upstream line rate
118// inconsistency in the target channel. (R) (mandatory) (4-byte)
119//
120// Tuning Control Requests Rejected_Us_Lncd
121// Tuning control requests rejected/US_LNCD: The counter of transmitted Tuning_Response PLOAM
122// messages with NACK operation code and US_LNCD response code, indicating upstream line code
123// inconsistency in the target channel. (R) (mandatory) (4-byte)
124//
125type TwdmChannelTuningPerformanceMonitoringHistoryDataPart2 struct {
126 ManagedEntityDefinition
127 Attributes AttributeValueMap
128}
129
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000130// Attribute name constants
131
132const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_IntervalEndTime = "IntervalEndTime"
133const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_ThresholdData12Id = "ThresholdData12Id"
134const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedDsAlbl = "TuningControlRequestsRejectedDsAlbl"
135const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedDsVoid = "TuningControlRequestsRejectedDsVoid"
136const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedDsPart = "TuningControlRequestsRejectedDsPart"
137const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedDsTunr = "TuningControlRequestsRejectedDsTunr"
138const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedDsLnrt = "TuningControlRequestsRejectedDsLnrt"
139const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedDsLncd = "TuningControlRequestsRejectedDsLncd"
140const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedUsAlbl = "TuningControlRequestsRejectedUsAlbl"
141const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedUsVoid = "TuningControlRequestsRejectedUsVoid"
142const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedUsTunr = "TuningControlRequestsRejectedUsTunr"
143const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedUsClbr = "TuningControlRequestsRejectedUsClbr"
144const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedUsLktp = "TuningControlRequestsRejectedUsLktp"
145const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedUsLnrt = "TuningControlRequestsRejectedUsLnrt"
146const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedUsLncd = "TuningControlRequestsRejectedUsLncd"
147
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000148func init() {
149 twdmchanneltuningperformancemonitoringhistorydatapart2BME = &ManagedEntityDefinition{
150 Name: "TwdmChannelTuningPerformanceMonitoringHistoryDataPart2",
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000151 ClassID: TwdmChannelTuningPerformanceMonitoringHistoryDataPart2ClassID,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000152 MessageTypes: mapset.NewSetWith(
153 Create,
154 Delete,
155 Get,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000156 Set,
mpagenko836a1fd2021-11-01 16:12:42 +0000157 GetCurrentData,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000158 ),
159 AllowedAttributeMask: 0xfffe,
160 AttributeDefinitions: AttributeDefinitionMap{
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000161 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
162 1: ByteField(TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_IntervalEndTime, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
163 2: Uint16Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_ThresholdData12Id, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
164 3: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedDsAlbl, CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
165 4: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedDsVoid, CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
166 5: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedDsPart, CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
167 6: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedDsTunr, CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
168 7: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedDsLnrt, CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
169 8: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedDsLncd, CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
170 9: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedUsAlbl, CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
171 10: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedUsVoid, CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
172 11: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedUsTunr, CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
173 12: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedUsClbr, CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
174 13: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedUsLktp, CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
175 14: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedUsLnrt, CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14),
176 15: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart2_TuningControlRequestsRejectedUsLncd, CounterAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, false, false, 15),
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000177 },
178 Access: CreatedByOlt,
179 Support: UnknownSupport,
Himani Chawlaac1f5ad2021-02-04 21:21:54 +0530180 Alarms: AlarmMap{
181 0: "Tuning control requests rejected/DS_ALBL",
182 1: "Tuning control requests rejected/DS_VOID",
183 2: "Tuning control requests rejected/DS_PART",
184 3: "Tuning control requests rejected/DS_TUNR",
185 4: "Tuning control requests rejected/DS_LNRT",
186 5: "Tuning control requests rejected/DS_LNCD",
187 6: "Tuning control requests rejected/US_ALBL",
188 7: "Tuning control requests rejected/US_VOID",
189 8: "Tuning control requests rejected/US_TUNR",
190 9: "Tuning control requests rejected/US_CLBR",
191 10: "Tuning control requests rejected/US_LKTP",
192 11: "Tuning control requests rejected/US_LNRT",
193 12: "Tuning control requests rejected/US_LNCD",
194 },
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000195 }
196}
197
198// NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart2 (class ID 450) creates the basic
199// Managed Entity definition that is used to validate an ME of this type that
200// is received from or transmitted to the OMCC.
201func NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
202 return NewManagedEntity(*twdmchanneltuningperformancemonitoringhistorydatapart2BME, params...)
203}