blob: 991d592ea795d30cf4857f3f9db19247eb69589b [file] [log] [blame]
Holger Hildebrandtfa074992020-03-27 15:42:06 +00001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +00004 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +00005 * 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
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +00008 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +00009 * http://www.apache.org/licenses/LICENSE-2.0
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000010 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +000011 * 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 */
Himani Chawlaac1f5ad2021-02-04 21:21:54 +053017/*
Holger Hildebrandtfa074992020-03-27 15:42:06 +000018 * 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 */
23
24package generated
25
26import "github.com/deckarep/golang-set"
27
28// TwdmChannelTuningPerformanceMonitoringHistoryDataPart3ClassID is the 16-bit ID for the OMCI
29// Managed entity TWDM channel tuning performance monitoring history data part 3
mpagenko836a1fd2021-11-01 16:12:42 +000030const TwdmChannelTuningPerformanceMonitoringHistoryDataPart3ClassID = ClassID(451) // 0x01c3
Holger Hildebrandtfa074992020-03-27 15:42:06 +000031
32var twdmchanneltuningperformancemonitoringhistorydatapart3BME *ManagedEntityDefinition
33
mpagenko836a1fd2021-11-01 16:12:42 +000034// TwdmChannelTuningPerformanceMonitoringHistoryDataPart3 (Class ID: #451 / 0x01c3)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000035// This ME collects remaining 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. This ME contains the counters characterized as optional in clause
41// 14 of [ITU-T-G.989.3].
42//
43// For a complete discussion of generic PM architecture, refer to clause I.4.
44//
45// Relationships
46// An instance of this ME is associated with an instance of TWDM channel ME.
47//
48// Attributes
49// Managed Entity Id
mpagenko836a1fd2021-11-01 16:12:42 +000050// This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is
51// implicitly linked to an instance of the TWDM channel ME. (R, setbycreate) (mandatory) (2-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000052//
53// Interval End Time
mpagenko836a1fd2021-11-01 16:12:42 +000054// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000055//
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 Rollback_Ds_Albl
61// Tuning control requests Rollback/DS_ALBL: The counter of controlled tuning attempts that failed
62// due to downstream administrative label inconsistency, as indicated by the Tuning_Response PLOAM
63// message with Rollback operation code and DS_ALBL response code. (R) (mandatory) (4-byte)
64//
65// Tuning Control Requests Rollback_Ds_Lktp
66// Tuning control requests Rollback/DS_LKTP: The counter of controlled tuning attempts that failed
67// due to downstream optical link type inconsistency, as indicated by the Tuning_Response PLOAM
68// message with Rollback operation code and DS_LKTP response code. (R) (mandatory) (4-byte)
69//
70// Tuning Control Requests Rollback_Us_Albl
71// Tuning control requests Rollback/US_ALBL: The counter of controlled tuning attempts that failed
72// due to upstream administrative label violation, as indicated by the Tuning_Response PLOAM
73// message with Rollback operation code and US_ALBL response code. (R) (mandatory) (4-byte)
74//
75// Tuning Control Requests Rollback_Us_Void
76// Tuning control requests Rollback/US_VOID: The counter of controlled tuning attempts that failed
77// due to the target upstream wavelength channel descriptor being void, as indicated by the
78// Tuning_Response PLOAM message with Rollback operation code and US_VOID response code. (R)
79// (mandatory) (4-byte)
80//
81// Tuning Control Requests Rollback_Us_Tunr
82// Tuning control requests Rollback/US_TUNR: The counter of controlled tuning attempts that failed
83// due to the transmitter tuning range violation, as indicated by the Tuning_Response PLOAM message
84// with Rollback operation code and US_TUNR response code. (R) (mandatory) (4-byte)
85//
86// Tuning Control Requests Rollback_Us_Lktp
87// Tuning control requests Rollback/US_LKTP: The counter of controlled tuning attempts that failed
88// due to the upstream optical link type violation, as indicated by the Tuning_Response PLOAM
89// message with Rollback operation code and US_LKTP response code. (R) (mandatory) (4-byte)
90//
91// Tuning Control Requests Rollback_Us_Lnrt
92// Tuning control requests Rollback/US_LNRT: The counter of controlled tuning attempts that failed
93// due to the upstream line rate violation, as indicated by the Tuning_Response PLOAM message with
94// Rollback operation code and US_LNRT response code. (R) (mandatory) (4-byte)
95//
96// Tuning Control Requests Rollback_Us_Lncd
97// Tuning control requests Rollback/US_LNCD: The counter of controlled tuning attempts that failed
98// due to the upstream line code violation, as indicated by the Tuning_Response PLOAM message with
99// Rollback operation code and US_LNCD response code. (R) (mandatory) (4-byte)
100//
101type TwdmChannelTuningPerformanceMonitoringHistoryDataPart3 struct {
102 ManagedEntityDefinition
103 Attributes AttributeValueMap
104}
105
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000106// Attribute name constants
107
108const TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_IntervalEndTime = "IntervalEndTime"
109const TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_ThresholdData12Id = "ThresholdData12Id"
110const TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_TuningControlRequestsRollbackDsAlbl = "TuningControlRequestsRollbackDsAlbl"
111const TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_TuningControlRequestsRollbackDsLktp = "TuningControlRequestsRollbackDsLktp"
112const TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_TuningControlRequestsRollbackUsAlbl = "TuningControlRequestsRollbackUsAlbl"
113const TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_TuningControlRequestsRollbackUsVoid = "TuningControlRequestsRollbackUsVoid"
114const TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_TuningControlRequestsRollbackUsTunr = "TuningControlRequestsRollbackUsTunr"
115const TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_TuningControlRequestsRollbackUsLktp = "TuningControlRequestsRollbackUsLktp"
116const TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_TuningControlRequestsRollbackUsLnrt = "TuningControlRequestsRollbackUsLnrt"
117const TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_TuningControlRequestsRollbackUsLncd = "TuningControlRequestsRollbackUsLncd"
118
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000119func init() {
120 twdmchanneltuningperformancemonitoringhistorydatapart3BME = &ManagedEntityDefinition{
121 Name: "TwdmChannelTuningPerformanceMonitoringHistoryDataPart3",
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000122 ClassID: TwdmChannelTuningPerformanceMonitoringHistoryDataPart3ClassID,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000123 MessageTypes: mapset.NewSetWith(
124 Create,
125 Delete,
126 Get,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000127 Set,
mpagenko836a1fd2021-11-01 16:12:42 +0000128 GetCurrentData,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000129 ),
130 AllowedAttributeMask: 0xffc0,
131 AttributeDefinitions: AttributeDefinitionMap{
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000132 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
133 1: ByteField(TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_IntervalEndTime, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
134 2: Uint16Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_ThresholdData12Id, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
135 3: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_TuningControlRequestsRollbackDsAlbl, CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
136 4: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_TuningControlRequestsRollbackDsLktp, CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
137 5: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_TuningControlRequestsRollbackUsAlbl, CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
138 6: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_TuningControlRequestsRollbackUsVoid, CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
139 7: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_TuningControlRequestsRollbackUsTunr, CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
140 8: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_TuningControlRequestsRollbackUsLktp, CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
141 9: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_TuningControlRequestsRollbackUsLnrt, CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
142 10: Uint32Field(TwdmChannelTuningPerformanceMonitoringHistoryDataPart3_TuningControlRequestsRollbackUsLncd, CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000143 },
144 Access: CreatedByOlt,
145 Support: UnknownSupport,
Himani Chawlaac1f5ad2021-02-04 21:21:54 +0530146 Alarms: AlarmMap{
147 0: "Tuning control requests Rollback/DS_ALBL",
148 1: "Tuning control requests Rollback /DS_LKTP",
149 2: "Tuning control requests Rollback/US_ALBL",
150 3: "Tuning control requests Rollback /US_VOID",
151 4: "Tuning control requests Rollback/US_TUNR",
152 5: "Tuning control requests Rollback /US_LKTP",
153 6: "Tuning control requests Rollback/US_LNRT",
154 7: "Tuning control requests Rollback /US_LNCD",
155 },
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000156 }
157}
158
159// NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart3 (class ID 451) creates the basic
160// Managed Entity definition that is used to validate an ME of this type that
161// is received from or transmitted to the OMCC.
162func NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart3(params ...ParamData) (*ManagedEntity, OmciErrors) {
163 return NewManagedEntity(*twdmchanneltuningperformancemonitoringhistorydatapart3BME, params...)
164}