blob: 9e7d0e338eec62fe1f2a59402e8838ffa53f6991 [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
30const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2ClassID ClassID = ClassID(450)
31
32var twdmchanneltuningperformancemonitoringhistorydatapart2BME *ManagedEntityDefinition
33
34// TwdmChannelTuningPerformanceMonitoringHistoryDataPart2 (class ID #450)
35// 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
50// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
51// identical ID, this ME is implicitly linked to an instance of the TWDM channel ME. (R,
52// setbycreate) (mandatory) (2-bytes)
53//
54// Interval End Time
55// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
56// (mandatory) (1-byte)
57//
58// Threshold Data 1_2 Id
59// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
60// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
61//
62// Tuning Control Requests Rejected_Ds_Albl
63// Tuning control requests rejected/DS_ALBL: The counter of transmitted Tuning_Response PLOAM
64// messages with NACK operation code and DS_ALBL response code, indicating downstream
65// administrative label inconsistency. (R) (mandatory) (4-byte)
66//
67// Tuning Control Requests Rejected_Ds_Void
68// Tuning control requests rejected/DS_VOID: The counter of transmitted Tuning_Response PLOAM
69// messages with NACK operation code and DS_VOID response code, indicating that the target
70// downstream wavelength channel descriptor is void. (R) (mandatory) (4-byte)
71//
72// Tuning Control Requests Rejected_Ds_Part
73// Tuning control requests rejected/DS_PART: The counter of transmitted Tuning_Response PLOAM
74// messages with NACK operation code and DS_PART response code, indicating that tuning request
75// involves channel partition violation. (R) (mandatory) (4-byte)
76//
77// Tuning Control Requests Rejected_Ds_Tunr
78// Tuning control requests rejected/DS_TUNR: The counter of transmitted Tuning_Response PLOAM
79// messages with NACK operation code and DS_TUNR response code, indicating that the target DS
80// wavelength channel is out of receiver tuning range. (R) (mandatory) (4-byte)
81//
82// Tuning Control Requests Rejected_Ds_Lnrt
83// Tuning control requests rejected/DS_LNRT: The counter of transmitted Tuning_Response PLOAM
84// messages with NACK operation code and DS_LNRT response code, indicating downstream line rate
85// inconsistency in the target channel. (R) (mandatory) (4-byte)
86//
87// Tuning Control Requests Rejected_Ds_Lncd
88// Tuning control requests rejected/DS_LNCD: The counter of transmitted Tuning_Response PLOAM
89// messages with NACK operation code and DS_LNCD response code, indicating downstream line code
90// inconsistency in the target channel. (R) (mandatory) (4-byte)
91//
92// Tuning Control Requests Rejected_Us_Albl
93// Tuning control requests rejected/US_ALBL: The counter of transmitted Tuning_Response PLOAM
94// messages with NACK operation code and US_ALBL response code, indicating upstream administrative
95// label inconsistency. (R) (mandatory) (4-byte)
96//
97// Tuning Control Requests Rejected_Us_Void
98// Tuning control requests rejected/US_VOID: The counter of transmitted Tuning_Response PLOAM
99// messages with NACK operation code and US_VOID response code, indicating that the target upstream
100// wavelength channel descriptor is void. (R) (mandatory) (4-byte)
101//
102// Tuning Control Requests Rejected_Us_Tunr
103// Tuning control requests rejected/US_TUNR: The counter of transmitted Tuning_Response PLOAM
104// messages with NACK operation code and US_TUNR response code, indicating that the target US
105// wavelength channel is out of transmitter tuning range. (R) (mandatory) (4-byte)
106//
107// Tuning Control Requests Rejected_Us_Clbr
108// Tuning control requests rejected/US_CLBR: The counter of transmitted Tuning_Response PLOAM
109// messages with NACK operation code and US_CLBR response code, indicating that the transmitter has
110// insufficient calibration accuracy in the target US wavelength channel. (R) (mandatory) (4-byte)
111//
112// Tuning Control Requests Rejected_Us_Lktp
113// Tuning control requests rejected/US_LKTP: The counter of transmitted Tuning_Response PLOAM
114// messages with NACK operation code and US_LKTP response code, indicating upstream optical link
115// type inconsistency. (R) (mandatory) (4-byte)
116//
117// Tuning Control Requests Rejected_Us_Lnrt
118// Tuning control requests rejected/US_LNRT: The counter of transmitted Tuning_Response PLOAM
119// messages with NACK operation code and US_LNRT response code, indicating upstream line rate
120// inconsistency in the target channel. (R) (mandatory) (4-byte)
121//
122// Tuning Control Requests Rejected_Us_Lncd
123// Tuning control requests rejected/US_LNCD: The counter of transmitted Tuning_Response PLOAM
124// messages with NACK operation code and US_LNCD response code, indicating upstream line code
125// inconsistency in the target channel. (R) (mandatory) (4-byte)
126//
127type TwdmChannelTuningPerformanceMonitoringHistoryDataPart2 struct {
128 ManagedEntityDefinition
129 Attributes AttributeValueMap
130}
131
132func init() {
133 twdmchanneltuningperformancemonitoringhistorydatapart2BME = &ManagedEntityDefinition{
134 Name: "TwdmChannelTuningPerformanceMonitoringHistoryDataPart2",
135 ClassID: 450,
136 MessageTypes: mapset.NewSetWith(
137 Create,
138 Delete,
139 Get,
140 GetCurrentData,
141 Set,
142 ),
143 AllowedAttributeMask: 0xfffe,
144 AttributeDefinitions: AttributeDefinitionMap{
145 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
146 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
147 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
148 3: Uint32Field("TuningControlRequestsRejectedDsAlbl", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
149 4: Uint32Field("TuningControlRequestsRejectedDsVoid", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
150 5: Uint32Field("TuningControlRequestsRejectedDsPart", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
151 6: Uint32Field("TuningControlRequestsRejectedDsTunr", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
152 7: Uint32Field("TuningControlRequestsRejectedDsLnrt", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
153 8: Uint32Field("TuningControlRequestsRejectedDsLncd", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
154 9: Uint32Field("TuningControlRequestsRejectedUsAlbl", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
155 10: Uint32Field("TuningControlRequestsRejectedUsVoid", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
156 11: Uint32Field("TuningControlRequestsRejectedUsTunr", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
157 12: Uint32Field("TuningControlRequestsRejectedUsClbr", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
158 13: Uint32Field("TuningControlRequestsRejectedUsLktp", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
159 14: Uint32Field("TuningControlRequestsRejectedUsLnrt", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14),
160 15: Uint32Field("TuningControlRequestsRejectedUsLncd", CounterAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, false, false, 15),
161 },
162 Access: CreatedByOlt,
163 Support: UnknownSupport,
Chip Boling34ebcb62021-02-02 12:13:58 -0600164 Alarms: AlarmMap{
165 0: "Tuning control requests rejected/DS_ALBL",
166 1: "Tuning control requests rejected/DS_VOID",
167 2: "Tuning control requests rejected/DS_PART",
168 3: "Tuning control requests rejected/DS_TUNR",
169 4: "Tuning control requests rejected/DS_LNRT",
170 5: "Tuning control requests rejected/DS_LNCD",
171 6: "Tuning control requests rejected/US_ALBL",
172 7: "Tuning control requests rejected/US_VOID",
173 8: "Tuning control requests rejected/US_TUNR",
174 9: "Tuning control requests rejected/US_CLBR",
175 10: "Tuning control requests rejected/US_LKTP",
176 11: "Tuning control requests rejected/US_LNRT",
177 12: "Tuning control requests rejected/US_LNCD",
178 },
Chip Boling6e27b352020-02-14 09:10:01 -0600179 }
180}
181
182// NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart2 (class ID 450) creates the basic
183// Managed Entity definition that is used to validate an ME of this type that
184// is received from or transmitted to the OMCC.
185func NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
186 return NewManagedEntity(*twdmchanneltuningperformancemonitoringhistorydatapart2BME, params...)
187}