blob: 8e44310d0b48b7816c30b66d8e76fb28775bca1b [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
8 * Unless required by applicable law or agreed to in writing, software
9 * distributed under the License is distributed on an "AS IS" BASIS,
10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 * See the License for the specific language governing permissions and
12 * limitations under the License.
13 */
14/*
15 * NOTE: This file was generated, manual edits will be overwritten!
16 *
17 * Generated by 'goCodeGenerator.py':
18 * https://github.com/cboling/OMCI-parser/README.md
19 */
20package generated
21
22import "github.com/deckarep/golang-set"
23
24const TwdmChannelTuningPerformanceMonitoringHistoryDataPart1ClassId ClassID = ClassID(449)
25
26var twdmchanneltuningperformancemonitoringhistorydatapart1BME *ManagedEntityDefinition
27
28// TwdmChannelTuningPerformanceMonitoringHistoryDataPart1 (class ID #449)
29// This ME collects certain tuning-control-related PM data associated with the slot/circuit pack,
30// hosting one or more ANI-G MEs, for a specific TWDM channel. Instances of this ME are created and
31// deleted by the OLT.
32//
33// The relevant events this ME is concerned with are counted towards the PM statistics associated
34// with the source TWDM channel. The attribute descriptions refer to the ONU activation cycle
35// states and timers specified in clause 12 of [ITU-T  G.989.3]. This ME contains the counters
36// characterized as mandatory in clause 14 of [ITU-T  G.989.3].
37//
38// For a complete discussion of generic PM architecture, refer to clause I.4.
39//
40// Relationships
41// An instance of this ME is associated with an instance of TWDM channel ME.
42//
43// Attributes
44// Managed Entity Id
45// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
46// identical ID, this ME is implicitly linked to an instance of the TWDM channel ME. (R,
47// setbycreate) (mandatory) (2 bytes)
48//
49// Interval End Time
50// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
51// (mandatory) (1 byte)
52//
53// Threshold Data 1_2 Id
54// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
55// that contains PM threshold values. (R, W, setbycreate) (mandatory) (2 bytes)
56//
57// Tuning Control Requests For Rx Only Or Rx And Tx
58// Tuning control requests for Rx only or Rx and Tx: The counter of received Tuning_Control PLOAM
59// messages with Request operation code that contain tuning instructions either for receiver only
60// or for both receiver and transmitter. (R) (mandatory) (4 byte)
61//
62// Tuning Control Requests For Tx Only
63// Tuning control requests for Tx only: The counter of received Tuning_Control PLOAM messages with
64// Request operation code that contain tuning instructions for transmitter only. (R) (mandatory)
65// (4 byte)
66//
67// Tuning Control Requests Rejected_Int_Sfc
68// Tuning control requests rejected/INT_SFC: The counter of transmitted Tuning_Response PLOAM
69// messages with NACK operation code and INT_SFC response code, indicating inability to start
70// transceiver tuning by the specified time (SFC). (R) (mandatory) (4 byte)
71//
72// Tuning Control Requests Rejected_Ds_Xxx
73// Tuning control requests rejected/DS_xxx: The aggregate counter of transmitted Tuning_Response
74// PLOAM messages with NACK operation code and any DS_xxx response code, indicating target
75// downstream wavelength channel inconsistency. (R) (mandatory) (4 byte)
76//
77// Tuning Control Requests Rejected_Us_Xxx
78// Tuning control requests rejected/US_xxx: The aggregate counter of transmitted Tuning_Response
79// PLOAM messages with NACK operation code and any US_xxx response code, indicating target upstream
80// wavelength channel inconsistency. (R) (mandatory) (4 byte)
81//
82// Tuning Control Requests Fulfilled With Onu Reacquired At Target Channel
83// Tuning control requests fulfilled with ONU reacquired at target channel: The counter of
84// controlled tuning attempts for which an upstream tuning confirmation has been obtained in the
85// target channel. (R) (mandatory) (4 byte)
86//
87// Tuning Control Requests Failed Due To Target Ds Wavelength Channel Not Found
88// Tuning control requests failed due to target DS wavelength channel not found: The counter of
89// controlled tuning attempts that failed due to timer TO4 expiration in the DS Tuning state (O8)
90// in the target channel. (R) (mandatory) (4 byte)
91//
92// Tuning Control Requests Failed Due To No Feedback In Target Ds Wavelength Channel
93// Tuning control requests failed due to no feedback in target DS wavelength channel: The counter
94// of controlled tuning attempts that failed due to timer TO5 expiration in the US Tuning state
95// (O9) in the target channel. (R) (mandatory) (4 byte)
96//
97// Tuning Control Requests Resolved With Onu Reacquired At Discretionary Channel
98// Tuning control requests resolved with ONU reacquired at discretionary channel: The counter of
99// controlled tuning attempts for which an upstream tuning confirmation has been obtained in the
100// discretionary channel. (R) (mandatory) (4 byte)
101//
102// Tuning Control Requests Rollback_Com_Ds
103// Tuning control requests Rollback/COM_DS: The counter of controlled tuning attempts that failed
104// due to communication condition in the target channel, as indicated by the Tuning_Response PLOAM
105// message with Rollback operation code and COM_DS response code. (R) (mandatory) (4 byte)
106//
107// Tuning Control Requests Rollback_Ds_Xxx
108// Tuning control requests Rollback/DS_xxx: The aggregate counter of controlled tuning attempts
109// that failed due to target downstream wavelength channel inconsistency, as indicated by the
110// Tuning_Response PLOAM message with Rollback operation code and any DS_xxx response code. (R)
111// (mandatory) (4 byte)
112//
113// Tuning Control Requests Rollback_Us_Xxx
114// Tuning control requests Rollback/US_xxx: The aggregate counter of controlled tuning attempts
115// that failed due to target upstream wavelength channel parameter violation, as indicated by the
116// Tuning_Response PLOAM message with Rollback operation code and US_xxx response code. (R)
117// (mandatory) (4 byte)
118//
119// Tuning Control Requests Failed With Onu Reactivation
120// Tuning control requests failed with ONU reactivation: The counter of controlled tuning attempts
121// that failed on any reason, with expiration of timers TO4 or TO5 causing the ONU transition into
122// state O1. (R) (mandatory) (4 byte)
123//
124type TwdmChannelTuningPerformanceMonitoringHistoryDataPart1 struct {
125 ManagedEntityDefinition
126 Attributes AttributeValueMap
127}
128
129func init() {
130 twdmchanneltuningperformancemonitoringhistorydatapart1BME = &ManagedEntityDefinition{
131 Name: "TwdmChannelTuningPerformanceMonitoringHistoryDataPart1",
132 ClassID: 449,
133 MessageTypes: mapset.NewSetWith(
134 Create,
135 Delete,
136 Get,
137 Set,
138 ),
139 AllowedAttributeMask: 0XFFFE,
140 AttributeDefinitions: AttributeDefinitionMap{
141 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
142 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
143 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
144 3: Uint32Field("TuningControlRequestsForRxOnlyOrRxAndTx", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
145 4: Uint32Field("TuningControlRequestsForTxOnly", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
146 5: Uint32Field("TuningControlRequestsRejectedIntSfc", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
147 6: Uint32Field("TuningControlRequestsRejectedDsXxx", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
148 7: Uint32Field("TuningControlRequestsRejectedUsXxx", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
149 8: Uint32Field("TuningControlRequestsFulfilledWithOnuReacquiredAtTargetChannel", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
150 9: Uint32Field("TuningControlRequestsFailedDueToTargetDsWavelengthChannelNotFound", 0, mapset.NewSetWith(Read), false, false, false, false, 9),
151 10: Uint32Field("TuningControlRequestsFailedDueToNoFeedbackInTargetDsWavelengthChannel", 0, mapset.NewSetWith(Read), false, false, false, false, 10),
152 11: Uint32Field("TuningControlRequestsResolvedWithOnuReacquiredAtDiscretionaryChannel", 0, mapset.NewSetWith(Read), false, false, false, false, 11),
153 12: Uint32Field("TuningControlRequestsRollbackComDs", 0, mapset.NewSetWith(Read), false, false, false, false, 12),
154 13: Uint32Field("TuningControlRequestsRollbackDsXxx", 0, mapset.NewSetWith(Read), false, false, false, false, 13),
155 14: Uint32Field("TuningControlRequestsRollbackUsXxx", 0, mapset.NewSetWith(Read), false, false, false, false, 14),
156 15: Uint32Field("TuningControlRequestsFailedWithOnuReactivation", 0, mapset.NewSetWith(Read), false, false, false, false, 15),
157 },
158 }
159}
160
161// NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart1 (class ID 449 creates the basic
162// Managed Entity definition that is used to validate an ME of this type that
163// is received from the wire, about to be sent on the wire.
164func NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart1(params ...ParamData) (*ManagedEntity, OmciErrors) {
165 return NewManagedEntity(twdmchanneltuningperformancemonitoringhistorydatapart1BME, params...)
166}