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