blob: 31dbf0af16bcbf99823a394994cb18333a702399 [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
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 */
20
21package generated
22
23import "github.com/deckarep/golang-set"
24
25// TwdmChannelTuningPerformanceMonitoringHistoryDataPart1ClassID is the 16-bit ID for the OMCI
26// Managed entity TWDM channel tuning performance monitoring history data part 1
27const TwdmChannelTuningPerformanceMonitoringHistoryDataPart1ClassID ClassID = ClassID(449)
28
29var twdmchanneltuningperformancemonitoringhistorydatapart1BME *ManagedEntityDefinition
30
31// TwdmChannelTuningPerformanceMonitoringHistoryDataPart1 (class ID #449)
32// This ME collects certain tuning-control-related PM data associated with the slot/circuit pack,
33// hosting one or more ANI-G MEs, for a specific TWDM channel. Instances of this ME are created and
34// deleted by the OLT.
35//
36// The relevant events this ME is concerned with are counted towards the PM statistics associated
37// with the source TWDM channel. The attribute descriptions refer to the ONU activation cycle
38// states and timers specified in clause 12 of [ITU-T- G.989.3]. This ME contains the counters
39// characterized as mandatory in clause 14 of [ITU-T- G.989.3].
40//
41// For a complete discussion of generic PM architecture, refer to clause I.4.
42//
43// Relationships
44// An instance of this ME is associated with an instance of TWDM channel ME.
45//
46// Attributes
47// Managed Entity Id
48// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
49// identical ID, this ME is implicitly linked to an instance of the TWDM channel ME. (R,
50// setbycreate) (mandatory) (2-bytes)
51//
52// Interval End Time
53// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
54// (mandatory) (1-byte)
55//
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 For Rx Only Or Rx And Tx
61// Tuning control requests for Rx only or Rx and Tx: The counter of received Tuning_Control PLOAM
62// messages with Request operation code that contain tuning instructions either for receiver only
63// or for both receiver and transmitter. (R) (mandatory) (4-byte)
64//
65// Tuning Control Requests For Tx Only
66// Tuning control requests for Tx only: The counter of received Tuning_Control PLOAM messages with
67// Request operation code that contain tuning instructions for transmitter only. (R) (mandatory)
68// (4-byte)
69//
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
73// transceiver tuning by the specified time (SFC). (R) (mandatory) (4-byte)
74//
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
78// downstream wavelength channel inconsistency. (R) (mandatory) (4-byte)
79//
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
83// wavelength channel inconsistency. (R) (mandatory) (4-byte)
84//
85// Tuning Control Requests Fulfilled With Onu Reacquired At Target Channel
86// Tuning control requests fulfilled with ONU reacquired at target channel: The counter of
87// controlled tuning attempts for which an upstream tuning confirmation has been obtained in the
88// target channel. (R) (mandatory) (4-byte)
89//
90// Tuning Control Requests Failed Due To Target Ds Wavelength Channel Not Found
91// Tuning control requests failed due to target DS wavelength channel not found: The counter of
92// controlled tuning attempts that failed due to timer TO4 expiration in the DS Tuning state (O8)
93// in the target channel. (R) (mandatory) (4-byte)
94//
95// Tuning Control Requests Failed Due To No Feedback In Target Ds Wavelength Channel
96// Tuning control requests failed due to no feedback in target DS wavelength channel: The counter
97// of controlled tuning attempts that failed due to timer TO5 expiration in the US Tuning state
98// (O9) in the target channel. (R) (mandatory) (4-byte)
99//
100// Tuning Control Requests Resolved With Onu Reacquired At Discretionary Channel
101// Tuning control requests resolved with ONU reacquired at discretionary channel: The counter of
102// controlled tuning attempts for which an upstream tuning confirmation has been obtained in the
103// discretionary channel. (R) (mandatory) (4-byte)
104//
105// Tuning Control Requests Rollback_Com_Ds
106// Tuning control requests Rollback/COM_DS: The counter of controlled tuning attempts that failed
107// due to communication condition in the target channel, as indicated by the Tuning_Response PLOAM
108// message with Rollback operation code and COM_DS response code. (R) (mandatory) (4-byte)
109//
110// Tuning Control Requests Rollback_Ds_Xxx
111// Tuning control requests Rollback/DS_xxx: The aggregate counter of controlled tuning attempts
112// that failed due to target downstream wavelength channel inconsistency, as indicated by the
113// Tuning_Response PLOAM message with Rollback operation code and any DS_xxx response code. (R)
114// (mandatory) (4-byte)
115//
116// Tuning Control Requests Rollback_Us_Xxx
117// Tuning control requests Rollback/US_xxx: The aggregate counter of controlled tuning attempts
118// that failed due to target upstream wavelength channel parameter violation, as indicated by the
119// Tuning_Response PLOAM message with Rollback operation code and US_xxx response code. (R)
120// (mandatory) (4-byte)
121//
122// Tuning Control Requests Failed With Onu Reactivation
123// Tuning control requests failed with ONU reactivation: The counter of controlled tuning attempts
124// that failed on any reason, with expiration of timers TO4 or TO5 causing the ONU transition into
125// state O1. (R) (mandatory) (4-byte)
126//
127type TwdmChannelTuningPerformanceMonitoringHistoryDataPart1 struct {
128 ManagedEntityDefinition
129 Attributes AttributeValueMap
130}
131
132func init() {
133 twdmchanneltuningperformancemonitoringhistorydatapart1BME = &ManagedEntityDefinition{
134 Name: "TwdmChannelTuningPerformanceMonitoringHistoryDataPart1",
135 ClassID: 449,
136 MessageTypes: mapset.NewSetWith(
137 Create,
138 Delete,
139 Get,
140 Set,
141 ),
142 AllowedAttributeMask: 0xfffe,
143 AttributeDefinitions: AttributeDefinitionMap{
144 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
145 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
146 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
147 3: Uint32Field("TuningControlRequestsForRxOnlyOrRxAndTx", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
148 4: Uint32Field("TuningControlRequestsForTxOnly", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
149 5: Uint32Field("TuningControlRequestsRejectedIntSfc", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
150 6: Uint32Field("TuningControlRequestsRejectedDsXxx", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
151 7: Uint32Field("TuningControlRequestsRejectedUsXxx", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
152 8: Uint32Field("TuningControlRequestsFulfilledWithOnuReacquiredAtTargetChannel", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
153 9: Uint32Field("TuningControlRequestsFailedDueToTargetDsWavelengthChannelNotFound", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
154 10: Uint32Field("TuningControlRequestsFailedDueToNoFeedbackInTargetDsWavelengthChannel", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
155 11: Uint32Field("TuningControlRequestsResolvedWithOnuReacquiredAtDiscretionaryChannel", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
156 12: Uint32Field("TuningControlRequestsRollbackComDs", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
157 13: Uint32Field("TuningControlRequestsRollbackDsXxx", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
158 14: Uint32Field("TuningControlRequestsRollbackUsXxx", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14),
159 15: Uint32Field("TuningControlRequestsFailedWithOnuReactivation", CounterAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, false, false, 15),
160 },
161 Access: CreatedByOlt,
162 Support: UnknownSupport,
163 }
164}
165
166// NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart1 (class ID 449) creates the basic
167// Managed Entity definition that is used to validate an ME of this type that
168// is received from or transmitted to the OMCC.
169func NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart1(params ...ParamData) (*ManagedEntity, OmciErrors) {
170 return NewManagedEntity(*twdmchanneltuningperformancemonitoringhistorydatapart1BME, params...)
171}