blob: 3aac486b55af3c1b4789d395248b394ce4ed8eea [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Matteo Scandolof9d43412021-01-12 11:11:34 -08003 * Copyright 2020-present Open Networking Foundation
Elia Battiston9bfe1102022-02-03 10:38:03 +01004 *
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07005 * 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
Elia Battiston9bfe1102022-02-03 10:38:03 +01008 *
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07009 * http://www.apache.org/licenses/LICENSE-2.0
Elia Battiston9bfe1102022-02-03 10:38:03 +010010 *
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070011 * 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 */
Girish Gowdra161d27a2021-05-05 12:01:44 -070017/*
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070018 * 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 */
Matteo Scandolof9d43412021-01-12 11:11:34 -080023
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070024package generated
25
26import "github.com/deckarep/golang-set"
27
Matteo Scandolof9d43412021-01-12 11:11:34 -080028// TwdmChannelTuningPerformanceMonitoringHistoryDataPart1ClassID is the 16-bit ID for the OMCI
29// Managed entity TWDM channel tuning performance monitoring history data part 1
Andrea Campanella10426e22021-10-15 17:58:04 +020030const TwdmChannelTuningPerformanceMonitoringHistoryDataPart1ClassID = ClassID(449) // 0x01c1
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070031
32var twdmchanneltuningperformancemonitoringhistorydatapart1BME *ManagedEntityDefinition
33
Andrea Campanella10426e22021-10-15 17:58:04 +020034// TwdmChannelTuningPerformanceMonitoringHistoryDataPart1 (Class ID: #449 / 0x01c1)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070035// This ME collects certain tuning-control-related PM data associated with the slot/circuit pack,
36// hosting one or more ANI-G MEs, for a specific TWDM channel. Instances of this ME are created and
37// 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. The attribute descriptions refer to the ONU activation cycle
Matteo Scandolof9d43412021-01-12 11:11:34 -080041// states and timers specified in clause 12 of [ITU-T- G.989.3]. This ME contains the counters
42// characterized as mandatory in clause 14 of [ITU-T- G.989.3].
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070043//
44// For a complete discussion of generic PM architecture, refer to clause I.4.
45//
46// Relationships
47// An instance of this ME is associated with an instance of TWDM channel ME.
48//
49// Attributes
50// Managed Entity Id
Andrea Campanella10426e22021-10-15 17:58:04 +020051// This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is
52// implicitly linked to an instance of the TWDM channel ME. (R, setbycreate) (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070053//
54// Interval End Time
Andrea Campanella10426e22021-10-15 17:58:04 +020055// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070056//
57// Threshold Data 1_2 Id
58// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
Matteo Scandolof9d43412021-01-12 11:11:34 -080059// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070060//
61// Tuning Control Requests For Rx Only Or Rx And Tx
Andrea Campanella10426e22021-10-15 17:58:04 +020062// The counter of received Tuning_Control PLOAM messages with Request operation code that contain
63// tuning instructions either for receiver only or for both receiver and transmitter. (R)
64// (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070065//
66// Tuning Control Requests For Tx Only
Andrea Campanella10426e22021-10-15 17:58:04 +020067// The counter of received Tuning_Control PLOAM messages with Request operation code that contain
68// tuning instructions for transmitter only. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070069//
70// Tuning Control Requests Rejected_Int_Sfc
71// Tuning control requests rejected/INT_SFC: The counter of transmitted Tuning_Response PLOAM
72// messages with NACK operation code and INT_SFC response code, indicating inability to start
Matteo Scandolof9d43412021-01-12 11:11:34 -080073// transceiver tuning by the specified time (SFC). (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070074//
75// Tuning Control Requests Rejected_Ds_Xxx
76// Tuning control requests rejected/DS_xxx: The aggregate counter of transmitted Tuning_Response
77// PLOAM messages with NACK operation code and any DS_xxx response code, indicating target
Matteo Scandolof9d43412021-01-12 11:11:34 -080078// downstream wavelength channel inconsistency. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070079//
80// Tuning Control Requests Rejected_Us_Xxx
81// Tuning control requests rejected/US_xxx: The aggregate counter of transmitted Tuning_Response
82// PLOAM messages with NACK operation code and any US_xxx response code, indicating target upstream
Matteo Scandolof9d43412021-01-12 11:11:34 -080083// wavelength channel inconsistency. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070084//
85// Tuning Control Requests Fulfilled With Onu Reacquired At Target Channel
Andrea Campanella10426e22021-10-15 17:58:04 +020086// The counter of controlled tuning attempts for which an upstream tuning confirmation has been
87// obtained in the target channel. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070088//
89// Tuning Control Requests Failed Due To Target Ds Wavelength Channel Not Found
Andrea Campanella10426e22021-10-15 17:58:04 +020090// The counter of controlled tuning attempts that failed due to timer TO4 expiration in the DS
91// Tuning state (O8) in the target channel. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070092//
93// Tuning Control Requests Failed Due To No Feedback In Target Ds Wavelength Channel
Andrea Campanella10426e22021-10-15 17:58:04 +020094// The counter of controlled tuning attempts that failed due to timer TO5 expiration in the US
95// Tuning state (O9) in the target channel. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070096//
97// Tuning Control Requests Resolved With Onu Reacquired At Discretionary Channel
Andrea Campanella10426e22021-10-15 17:58:04 +020098// The counter of controlled tuning attempts for which an upstream tuning confirmation has been
99// obtained in the discretionary channel. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700100//
101// Tuning Control Requests Rollback_Com_Ds
102// Tuning control requests Rollback/COM_DS: The counter of controlled tuning attempts that failed
103// due to communication condition in the target channel, as indicated by the Tuning_Response PLOAM
Matteo Scandolof9d43412021-01-12 11:11:34 -0800104// message with Rollback operation code and COM_DS response code. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700105//
106// Tuning Control Requests Rollback_Ds_Xxx
107// Tuning control requests Rollback/DS_xxx: The aggregate counter of controlled tuning attempts
108// that failed due to target downstream wavelength channel inconsistency, as indicated by the
109// Tuning_Response PLOAM message with Rollback operation code and any DS_xxx response code. (R)
Matteo Scandolof9d43412021-01-12 11:11:34 -0800110// (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700111//
112// Tuning Control Requests Rollback_Us_Xxx
113// Tuning control requests Rollback/US_xxx: The aggregate counter of controlled tuning attempts
114// that failed due to target upstream wavelength channel parameter violation, as indicated by the
115// Tuning_Response PLOAM message with Rollback operation code and US_xxx response code. (R)
Matteo Scandolof9d43412021-01-12 11:11:34 -0800116// (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700117//
118// Tuning Control Requests Failed With Onu Reactivation
Andrea Campanella10426e22021-10-15 17:58:04 +0200119// The counter of controlled tuning attempts that failed on any reason, with expiration of timers
120// TO4 or TO5 causing the ONU transition into state O1. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700121//
122type TwdmChannelTuningPerformanceMonitoringHistoryDataPart1 struct {
123 ManagedEntityDefinition
124 Attributes AttributeValueMap
125}
126
Elia Battiston9bfe1102022-02-03 10:38:03 +0100127// Attribute name constants
128
129const TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_IntervalEndTime = "IntervalEndTime"
130const TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_ThresholdData12Id = "ThresholdData12Id"
131const TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsForRxOnlyOrRxAndTx = "TuningControlRequestsForRxOnlyOrRxAndTx"
132const TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsForTxOnly = "TuningControlRequestsForTxOnly"
133const TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsRejectedIntSfc = "TuningControlRequestsRejectedIntSfc"
134const TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsRejectedDsXxx = "TuningControlRequestsRejectedDsXxx"
135const TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsRejectedUsXxx = "TuningControlRequestsRejectedUsXxx"
136const TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsFulfilledWithOnuReacquiredAtTargetChannel = "TuningControlRequestsFulfilledWithOnuReacquiredAtTargetChannel"
137const TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsFailedDueToTargetDsWavelengthChannelNotFound = "TuningControlRequestsFailedDueToTargetDsWavelengthChannelNotFound"
138const TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsFailedDueToNoFeedbackInTargetDsWavelengthChannel = "TuningControlRequestsFailedDueToNoFeedbackInTargetDsWavelengthChannel"
139const TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsResolvedWithOnuReacquiredAtDiscretionaryChannel = "TuningControlRequestsResolvedWithOnuReacquiredAtDiscretionaryChannel"
140const TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsRollbackComDs = "TuningControlRequestsRollbackComDs"
141const TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsRollbackDsXxx = "TuningControlRequestsRollbackDsXxx"
142const TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsRollbackUsXxx = "TuningControlRequestsRollbackUsXxx"
143const TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsFailedWithOnuReactivation = "TuningControlRequestsFailedWithOnuReactivation"
144
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700145func init() {
146 twdmchanneltuningperformancemonitoringhistorydatapart1BME = &ManagedEntityDefinition{
147 Name: "TwdmChannelTuningPerformanceMonitoringHistoryDataPart1",
Elia Battiston9bfe1102022-02-03 10:38:03 +0100148 ClassID: TwdmChannelTuningPerformanceMonitoringHistoryDataPart1ClassID,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700149 MessageTypes: mapset.NewSetWith(
150 Create,
151 Delete,
152 Get,
153 Set,
154 ),
Matteo Scandolof9d43412021-01-12 11:11:34 -0800155 AllowedAttributeMask: 0xfffe,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700156 AttributeDefinitions: AttributeDefinitionMap{
Elia Battiston9bfe1102022-02-03 10:38:03 +0100157 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
158 1: ByteField(TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_IntervalEndTime, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
159 2: Uint16Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_ThresholdData12Id, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
160 3: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsForRxOnlyOrRxAndTx, CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
161 4: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsForTxOnly, CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
162 5: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsRejectedIntSfc, CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
163 6: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsRejectedDsXxx, CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
164 7: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsRejectedUsXxx, CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
165 8: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsFulfilledWithOnuReacquiredAtTargetChannel, CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
166 9: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsFailedDueToTargetDsWavelengthChannelNotFound, CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
167 10: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsFailedDueToNoFeedbackInTargetDsWavelengthChannel, CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
168 11: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsResolvedWithOnuReacquiredAtDiscretionaryChannel, CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
169 12: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsRollbackComDs, CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
170 13: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsRollbackDsXxx, CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
171 14: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsRollbackUsXxx, CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14),
172 15: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart1_TuningControlRequestsFailedWithOnuReactivation, CounterAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, false, false, 15),
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700173 },
Matteo Scandolof9d43412021-01-12 11:11:34 -0800174 Access: CreatedByOlt,
175 Support: UnknownSupport,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700176 }
177}
178
Matteo Scandolof9d43412021-01-12 11:11:34 -0800179// NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart1 (class ID 449) creates the basic
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700180// Managed Entity definition that is used to validate an ME of this type that
Matteo Scandolof9d43412021-01-12 11:11:34 -0800181// is received from or transmitted to the OMCC.
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700182func NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart1(params ...ParamData) (*ManagedEntity, OmciErrors) {
Matteo Scandolof9d43412021-01-12 11:11:34 -0800183 return NewManagedEntity(*twdmchanneltuningperformancemonitoringhistorydatapart1BME, params...)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700184}