blob: ce12a7b1f0400a91d879e96180adfd66516ad415 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Matteo Scandolof9d43412021-01-12 11:11:34 -08003 * Copyright 2020-present Open Networking Foundation
4
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07005 * 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
Matteo Scandolof9d43412021-01-12 11:11:34 -08008
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07009 * http://www.apache.org/licenses/LICENSE-2.0
Matteo Scandolof9d43412021-01-12 11:11:34 -080010
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070011 * 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 */
17/*
18 * 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 */
Matteo Scandolof9d43412021-01-12 11:11:34 -080023
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070024package generated
25
26import "github.com/deckarep/golang-set"
27
Matteo Scandolof9d43412021-01-12 11:11:34 -080028// TwdmChannelTuningPerformanceMonitoringHistoryDataPart3ClassID is the 16-bit ID for the OMCI
29// Managed entity TWDM channel tuning performance monitoring history data part 3
30const TwdmChannelTuningPerformanceMonitoringHistoryDataPart3ClassID ClassID = ClassID(451)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070031
32var twdmchanneltuningperformancemonitoringhistorydatapart3BME *ManagedEntityDefinition
33
34// TwdmChannelTuningPerformanceMonitoringHistoryDataPart3 (class ID #451)
35// 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
Matteo Scandolof9d43412021-01-12 11:11:34 -080041// 14 of [ITU-T-G.989.3].
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070042//
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
50// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
51// identical ID, this ME is implicitly linked to an instance of the TWDM channel ME. (R,
Matteo Scandolof9d43412021-01-12 11:11:34 -080052// setbycreate) (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070053//
54// Interval End Time
Matteo Scandolof9d43412021-01-12 11:11:34 -080055// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
56// (mandatory) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070057//
58// Threshold Data 1_2 Id
59// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
Matteo Scandolof9d43412021-01-12 11:11:34 -080060// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070061//
62// Tuning Control Requests Rollback_Ds_Albl
63// Tuning control requests Rollback/DS_ALBL: The counter of controlled tuning attempts that failed
64// due to downstream administrative label inconsistency, as indicated by the Tuning_Response PLOAM
Matteo Scandolof9d43412021-01-12 11:11:34 -080065// message with Rollback operation code and DS_ALBL response code. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070066//
67// Tuning Control Requests Rollback_Ds_Lktp
68// Tuning control requests Rollback/DS_LKTP: The counter of controlled tuning attempts that failed
69// due to downstream optical link type inconsistency, as indicated by the Tuning_Response PLOAM
Matteo Scandolof9d43412021-01-12 11:11:34 -080070// message with Rollback operation code and DS_LKTP response code. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070071//
72// Tuning Control Requests Rollback_Us_Albl
73// Tuning control requests Rollback/US_ALBL: The counter of controlled tuning attempts that failed
74// due to upstream administrative label violation, as indicated by the Tuning_Response PLOAM
Matteo Scandolof9d43412021-01-12 11:11:34 -080075// message with Rollback operation code and US_ALBL response code. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070076//
77// Tuning Control Requests Rollback_Us_Void
78// Tuning control requests Rollback/US_VOID: The counter of controlled tuning attempts that failed
79// due to the target upstream wavelength channel descriptor being void, as indicated by the
80// Tuning_Response PLOAM message with Rollback operation code and US_VOID response code. (R)
Matteo Scandolof9d43412021-01-12 11:11:34 -080081// (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070082//
83// Tuning Control Requests Rollback_Us_Tunr
84// Tuning control requests Rollback/US_TUNR: The counter of controlled tuning attempts that failed
85// due to the transmitter tuning range violation, as indicated by the Tuning_Response PLOAM message
Matteo Scandolof9d43412021-01-12 11:11:34 -080086// with Rollback operation code and US_TUNR response code. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070087//
88// Tuning Control Requests Rollback_Us_Lktp
89// Tuning control requests Rollback/US_LKTP: The counter of controlled tuning attempts that failed
90// due to the upstream optical link type violation, as indicated by the Tuning_Response PLOAM
Matteo Scandolof9d43412021-01-12 11:11:34 -080091// message with Rollback operation code and US_LKTP response code. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070092//
93// Tuning Control Requests Rollback_Us_Lnrt
94// Tuning control requests Rollback/US_LNRT: The counter of controlled tuning attempts that failed
95// due to the upstream line rate violation, as indicated by the Tuning_Response PLOAM message with
Matteo Scandolof9d43412021-01-12 11:11:34 -080096// Rollback operation code and US_LNRT response code. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070097//
98// Tuning Control Requests Rollback_Us_Lncd
99// Tuning control requests Rollback/US_LNCD: The counter of controlled tuning attempts that failed
100// due to the upstream line code violation, as indicated by the Tuning_Response PLOAM message with
Matteo Scandolof9d43412021-01-12 11:11:34 -0800101// Rollback operation code and US_LNCD response code. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700102//
103type TwdmChannelTuningPerformanceMonitoringHistoryDataPart3 struct {
104 ManagedEntityDefinition
105 Attributes AttributeValueMap
106}
107
108func init() {
109 twdmchanneltuningperformancemonitoringhistorydatapart3BME = &ManagedEntityDefinition{
110 Name: "TwdmChannelTuningPerformanceMonitoringHistoryDataPart3",
111 ClassID: 451,
112 MessageTypes: mapset.NewSetWith(
113 Create,
114 Delete,
115 Get,
116 GetCurrentData,
117 Set,
118 ),
Matteo Scandolof9d43412021-01-12 11:11:34 -0800119 AllowedAttributeMask: 0xffc0,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700120 AttributeDefinitions: AttributeDefinitionMap{
Matteo Scandolof9d43412021-01-12 11:11:34 -0800121 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
122 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
123 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
124 3: Uint32Field("TuningControlRequestsRollbackDsAlbl", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
125 4: Uint32Field("TuningControlRequestsRollbackDsLktp", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
126 5: Uint32Field("TuningControlRequestsRollbackUsAlbl", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
127 6: Uint32Field("TuningControlRequestsRollbackUsVoid", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
128 7: Uint32Field("TuningControlRequestsRollbackUsTunr", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
129 8: Uint32Field("TuningControlRequestsRollbackUsLktp", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
130 9: Uint32Field("TuningControlRequestsRollbackUsLnrt", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
131 10: Uint32Field("TuningControlRequestsRollbackUsLncd", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
132 },
133 Access: CreatedByOlt,
134 Support: UnknownSupport,
135 Alarms: AlarmMap{
136 0: "Tuning control requests Rollback/DS_ALBL",
137 1: "Tuning control requests Rollback /DS_LKTP",
138 2: "Tuning control requests Rollback/US_ALBL",
139 3: "Tuning control requests Rollback /US_VOID",
140 4: "Tuning control requests Rollback/US_TUNR",
141 5: "Tuning control requests Rollback /US_LKTP",
142 6: "Tuning control requests Rollback/US_LNRT",
143 7: "Tuning control requests Rollback /US_LNCD",
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700144 },
145 }
146}
147
Matteo Scandolof9d43412021-01-12 11:11:34 -0800148// NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart3 (class ID 451) creates the basic
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700149// Managed Entity definition that is used to validate an ME of this type that
Matteo Scandolof9d43412021-01-12 11:11:34 -0800150// is received from or transmitted to the OMCC.
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700151func NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart3(params ...ParamData) (*ManagedEntity, OmciErrors) {
Matteo Scandolof9d43412021-01-12 11:11:34 -0800152 return NewManagedEntity(*twdmchanneltuningperformancemonitoringhistorydatapart3BME, params...)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700153}