blob: 6dd4ca6f6a7ea72489c70fd5e857e512224b33a1 [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Andrea Campanella7167ebb2020-02-24 09:56:38 +01003 * Copyright 2020-present Open Networking Foundation
4
Chip Boling6e27b352020-02-14 09:10:01 -06005 * 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
Andrea Campanella7167ebb2020-02-24 09:56:38 +01008
Chip Boling6e27b352020-02-14 09:10:01 -06009 * http://www.apache.org/licenses/LICENSE-2.0
Andrea Campanella7167ebb2020-02-24 09:56:38 +010010
Chip Boling6e27b352020-02-14 09:10:01 -060011 * 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 */
Chip Boling34ebcb62021-02-02 12:13:58 -060017/*
Chip Boling6e27b352020-02-14 09:10:01 -060018 * 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
Chip Boling610117d2021-09-09 11:24:34 -050030const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2ClassID = ClassID(450) // 0x01c2
Chip Boling6e27b352020-02-14 09:10:01 -060031
32var twdmchanneltuningperformancemonitoringhistorydatapart2BME *ManagedEntityDefinition
33
Chip Boling610117d2021-09-09 11:24:34 -050034// TwdmChannelTuningPerformanceMonitoringHistoryDataPart2 (Class ID: #450 / 0x01c2)
Chip Boling6e27b352020-02-14 09:10:01 -060035// 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
Chip Boling610117d2021-09-09 11:24:34 -050050// 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)
Chip Boling6e27b352020-02-14 09:10:01 -060052//
53// Interval End Time
Chip Boling610117d2021-09-09 11:24:34 -050054// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Chip Boling6e27b352020-02-14 09:10:01 -060055//
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
130func init() {
131 twdmchanneltuningperformancemonitoringhistorydatapart2BME = &ManagedEntityDefinition{
132 Name: "TwdmChannelTuningPerformanceMonitoringHistoryDataPart2",
133 ClassID: 450,
134 MessageTypes: mapset.NewSetWith(
135 Create,
136 Delete,
137 Get,
Chip Boling6e27b352020-02-14 09:10:01 -0600138 Set,
Chip Boling610117d2021-09-09 11:24:34 -0500139 GetCurrentData,
Chip Boling6e27b352020-02-14 09:10:01 -0600140 ),
141 AllowedAttributeMask: 0xfffe,
142 AttributeDefinitions: AttributeDefinitionMap{
143 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
144 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
145 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
146 3: Uint32Field("TuningControlRequestsRejectedDsAlbl", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
147 4: Uint32Field("TuningControlRequestsRejectedDsVoid", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
148 5: Uint32Field("TuningControlRequestsRejectedDsPart", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
149 6: Uint32Field("TuningControlRequestsRejectedDsTunr", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
150 7: Uint32Field("TuningControlRequestsRejectedDsLnrt", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
151 8: Uint32Field("TuningControlRequestsRejectedDsLncd", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
152 9: Uint32Field("TuningControlRequestsRejectedUsAlbl", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
153 10: Uint32Field("TuningControlRequestsRejectedUsVoid", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
154 11: Uint32Field("TuningControlRequestsRejectedUsTunr", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
155 12: Uint32Field("TuningControlRequestsRejectedUsClbr", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
156 13: Uint32Field("TuningControlRequestsRejectedUsLktp", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
157 14: Uint32Field("TuningControlRequestsRejectedUsLnrt", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14),
158 15: Uint32Field("TuningControlRequestsRejectedUsLncd", CounterAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, false, false, 15),
159 },
160 Access: CreatedByOlt,
161 Support: UnknownSupport,
Chip Boling34ebcb62021-02-02 12:13:58 -0600162 Alarms: AlarmMap{
163 0: "Tuning control requests rejected/DS_ALBL",
164 1: "Tuning control requests rejected/DS_VOID",
165 2: "Tuning control requests rejected/DS_PART",
166 3: "Tuning control requests rejected/DS_TUNR",
167 4: "Tuning control requests rejected/DS_LNRT",
168 5: "Tuning control requests rejected/DS_LNCD",
169 6: "Tuning control requests rejected/US_ALBL",
170 7: "Tuning control requests rejected/US_VOID",
171 8: "Tuning control requests rejected/US_TUNR",
172 9: "Tuning control requests rejected/US_CLBR",
173 10: "Tuning control requests rejected/US_LKTP",
174 11: "Tuning control requests rejected/US_LNRT",
175 12: "Tuning control requests rejected/US_LNCD",
176 },
Chip Boling6e27b352020-02-14 09:10:01 -0600177 }
178}
179
180// NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart2 (class ID 450) creates the basic
181// Managed Entity definition that is used to validate an ME of this type that
182// is received from or transmitted to the OMCC.
183func NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
184 return NewManagedEntity(*twdmchanneltuningperformancemonitoringhistorydatapart2BME, params...)
185}