blob: ac28bccd889a4d0b13588aacf9edd1928224725c [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 TwdmChannelTuningPerformanceMonitoringHistoryDataPart3ClassId ClassID = ClassID(451)
25
26var twdmchanneltuningperformancemonitoringhistorydatapart3BME *ManagedEntityDefinition
27
28// TwdmChannelTuningPerformanceMonitoringHistoryDataPart3 (class ID #451)
29// This ME collects remaining tuning-control-related PM data associated with the slot/circuit pack,
30// hosting one or more ANI-G MEs, for a specific TWDM channel. Instances of this ME are created and
31// 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 Rollback_Ds_Albl
57// Tuning control requests Rollback/DS_ALBL: The counter of controlled tuning attempts that failed
58// due to downstream administrative label inconsistency, as indicated by the Tuning_Response PLOAM
59// message with Rollback operation code and DS_ALBL response code. (R) (mandatory) (4 byte)
60//
61// Tuning Control Requests Rollback_Ds_Lktp
62// Tuning control requests Rollback/DS_LKTP: The counter of controlled tuning attempts that failed
63// due to downstream optical link type inconsistency, as indicated by the Tuning_Response PLOAM
64// message with Rollback operation code and DS_LKTP response code. (R) (mandatory) (4 byte)
65//
66// Tuning Control Requests Rollback_Us_Albl
67// Tuning control requests Rollback/US_ALBL: The counter of controlled tuning attempts that failed
68// due to upstream administrative label violation, as indicated by the Tuning_Response PLOAM
69// message with Rollback operation code and US_ALBL response code. (R) (mandatory) (4 byte)
70//
71// Tuning Control Requests Rollback_Us_Void
72// Tuning control requests Rollback/US_VOID: The counter of controlled tuning attempts that failed
73// due to the target upstream wavelength channel descriptor being void, as indicated by the
74// Tuning_Response PLOAM message with Rollback operation code and US_VOID response code. (R)
75// (mandatory) (4 byte)
76//
77// Tuning Control Requests Rollback_Us_Tunr
78// Tuning control requests Rollback/US_TUNR: The counter of controlled tuning attempts that failed
79// due to the transmitter tuning range violation, as indicated by the Tuning_Response PLOAM message
80// with Rollback operation code and US_TUNR response code. (R) (mandatory) (4 byte)
81//
82// Tuning Control Requests Rollback_Us_Lktp
83// Tuning control requests Rollback/US_LKTP: The counter of controlled tuning attempts that failed
84// due to the upstream optical link type violation, as indicated by the Tuning_Response PLOAM
85// message with Rollback operation code and US_LKTP response code. (R) (mandatory) (4 byte)
86//
87// Tuning Control Requests Rollback_Us_Lnrt
88// Tuning control requests Rollback/US_LNRT: The counter of controlled tuning attempts that failed
89// due to the upstream line rate violation, as indicated by the Tuning_Response PLOAM message with
90// Rollback operation code and US_LNRT response code. (R) (mandatory) (4 byte)
91//
92// Tuning Control Requests Rollback_Us_Lncd
93// Tuning control requests Rollback/US_LNCD: The counter of controlled tuning attempts that failed
94// due to the upstream line code violation, as indicated by the Tuning_Response PLOAM message with
95// Rollback operation code and US_LNCD response code. (R) (mandatory) (4 byte)
96//
97type TwdmChannelTuningPerformanceMonitoringHistoryDataPart3 struct {
98 ManagedEntityDefinition
99 Attributes AttributeValueMap
100}
101
102func init() {
103 twdmchanneltuningperformancemonitoringhistorydatapart3BME = &ManagedEntityDefinition{
104 Name: "TwdmChannelTuningPerformanceMonitoringHistoryDataPart3",
105 ClassID: 451,
106 MessageTypes: mapset.NewSetWith(
107 Create,
108 Delete,
109 Get,
110 GetCurrentData,
111 Set,
112 ),
113 AllowedAttributeMask: 0XFFC0,
114 AttributeDefinitions: AttributeDefinitionMap{
115 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
116 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
117 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
118 3: Uint32Field("TuningControlRequestsRollbackDsAlbl", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
119 4: Uint32Field("TuningControlRequestsRollbackDsLktp", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
120 5: Uint32Field("TuningControlRequestsRollbackUsAlbl", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
121 6: Uint32Field("TuningControlRequestsRollbackUsVoid", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
122 7: Uint32Field("TuningControlRequestsRollbackUsTunr", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
123 8: Uint32Field("TuningControlRequestsRollbackUsLktp", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
124 9: Uint32Field("TuningControlRequestsRollbackUsLnrt", 0, mapset.NewSetWith(Read), false, false, false, false, 9),
125 10: Uint32Field("TuningControlRequestsRollbackUsLncd", 0, mapset.NewSetWith(Read), false, false, false, false, 10),
126 },
127 }
128}
129
130// NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart3 (class ID 451 creates the basic
131// Managed Entity definition that is used to validate an ME of this type that
132// is received from the wire, about to be sent on the wire.
133func NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart3(params ...ParamData) (*ManagedEntity, OmciErrors) {
134 return NewManagedEntity(twdmchanneltuningperformancemonitoringhistorydatapart3BME, params...)
135}