blob: 284f4765bb0405bf20c80f332c4908a310142a26 [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
Andrea Campanella10426e22021-10-15 17:58:04 +020030const TwdmChannelTuningPerformanceMonitoringHistoryDataPart3ClassID = ClassID(451) // 0x01c3
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070031
32var twdmchanneltuningperformancemonitoringhistorydatapart3BME *ManagedEntityDefinition
33
Andrea Campanella10426e22021-10-15 17:58:04 +020034// TwdmChannelTuningPerformanceMonitoringHistoryDataPart3 (Class ID: #451 / 0x01c3)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070035// 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
Andrea Campanella10426e22021-10-15 17:58:04 +020050// 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)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070052//
53// Interval End Time
Andrea Campanella10426e22021-10-15 17:58:04 +020054// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070055//
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
Matteo Scandolof9d43412021-01-12 11:11:34 -080058// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070059//
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
Matteo Scandolof9d43412021-01-12 11:11:34 -080063// message with Rollback operation code and DS_ALBL response code. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070064//
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
Matteo Scandolof9d43412021-01-12 11:11:34 -080068// message with Rollback operation code and DS_LKTP response code. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070069//
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
Matteo Scandolof9d43412021-01-12 11:11:34 -080073// message with Rollback operation code and US_ALBL response code. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070074//
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)
Matteo Scandolof9d43412021-01-12 11:11:34 -080079// (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070080//
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
Matteo Scandolof9d43412021-01-12 11:11:34 -080084// with Rollback operation code and US_TUNR response code. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070085//
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
Matteo Scandolof9d43412021-01-12 11:11:34 -080089// message with Rollback operation code and US_LKTP response code. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070090//
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
Matteo Scandolof9d43412021-01-12 11:11:34 -080094// Rollback operation code and US_LNRT response code. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070095//
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
Matteo Scandolof9d43412021-01-12 11:11:34 -080099// Rollback operation code and US_LNCD response code. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700100//
101type TwdmChannelTuningPerformanceMonitoringHistoryDataPart3 struct {
102 ManagedEntityDefinition
103 Attributes AttributeValueMap
104}
105
106func init() {
107 twdmchanneltuningperformancemonitoringhistorydatapart3BME = &ManagedEntityDefinition{
108 Name: "TwdmChannelTuningPerformanceMonitoringHistoryDataPart3",
109 ClassID: 451,
110 MessageTypes: mapset.NewSetWith(
111 Create,
112 Delete,
113 Get,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700114 Set,
Andrea Campanella10426e22021-10-15 17:58:04 +0200115 GetCurrentData,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700116 ),
Matteo Scandolof9d43412021-01-12 11:11:34 -0800117 AllowedAttributeMask: 0xffc0,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700118 AttributeDefinitions: AttributeDefinitionMap{
Matteo Scandolof9d43412021-01-12 11:11:34 -0800119 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
120 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
121 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
122 3: Uint32Field("TuningControlRequestsRollbackDsAlbl", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
123 4: Uint32Field("TuningControlRequestsRollbackDsLktp", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
124 5: Uint32Field("TuningControlRequestsRollbackUsAlbl", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
125 6: Uint32Field("TuningControlRequestsRollbackUsVoid", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
126 7: Uint32Field("TuningControlRequestsRollbackUsTunr", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
127 8: Uint32Field("TuningControlRequestsRollbackUsLktp", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
128 9: Uint32Field("TuningControlRequestsRollbackUsLnrt", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
129 10: Uint32Field("TuningControlRequestsRollbackUsLncd", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
130 },
131 Access: CreatedByOlt,
132 Support: UnknownSupport,
133 Alarms: AlarmMap{
134 0: "Tuning control requests Rollback/DS_ALBL",
135 1: "Tuning control requests Rollback /DS_LKTP",
136 2: "Tuning control requests Rollback/US_ALBL",
137 3: "Tuning control requests Rollback /US_VOID",
138 4: "Tuning control requests Rollback/US_TUNR",
139 5: "Tuning control requests Rollback /US_LKTP",
140 6: "Tuning control requests Rollback/US_LNRT",
141 7: "Tuning control requests Rollback /US_LNCD",
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700142 },
143 }
144}
145
Matteo Scandolof9d43412021-01-12 11:11:34 -0800146// NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart3 (class ID 451) creates the basic
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700147// Managed Entity definition that is used to validate an ME of this type that
Matteo Scandolof9d43412021-01-12 11:11:34 -0800148// is received from or transmitted to the OMCC.
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700149func NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart3(params ...ParamData) (*ManagedEntity, OmciErrors) {
Matteo Scandolof9d43412021-01-12 11:11:34 -0800150 return NewManagedEntity(*twdmchanneltuningperformancemonitoringhistorydatapart3BME, params...)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700151}