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