blob: daa8201d73aa309fc18fd5b38d9b4458435edbc3 [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Andrea Campanella7167ebb2020-02-24 09:56:38 +01003 * Copyright 2020-present Open Networking Foundation
4
Chip Boling6e27b352020-02-14 09:10:01 -06005 * 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
Andrea Campanella7167ebb2020-02-24 09:56:38 +01008
Chip Boling6e27b352020-02-14 09:10:01 -06009 * http://www.apache.org/licenses/LICENSE-2.0
Andrea Campanella7167ebb2020-02-24 09:56:38 +010010
Chip Boling6e27b352020-02-14 09:10:01 -060011 * 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 */
Andrea Campanella7167ebb2020-02-24 09:56:38 +010017 /*
Chip Boling6e27b352020-02-14 09:10:01 -060018 * 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
30const TwdmChannelTuningPerformanceMonitoringHistoryDataPart3ClassID ClassID = ClassID(451)
31
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
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
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,
52// setbycreate) (mandatory) (2-bytes)
53//
54// Interval End Time
55// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
56// (mandatory) (1-byte)
57//
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
60// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
61//
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
65// message with Rollback operation code and DS_ALBL response code. (R) (mandatory) (4-byte)
66//
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
70// message with Rollback operation code and DS_LKTP response code. (R) (mandatory) (4-byte)
71//
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
75// message with Rollback operation code and US_ALBL response code. (R) (mandatory) (4-byte)
76//
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)
81// (mandatory) (4-byte)
82//
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
86// with Rollback operation code and US_TUNR response code. (R) (mandatory) (4-byte)
87//
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
91// message with Rollback operation code and US_LKTP response code. (R) (mandatory) (4-byte)
92//
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
96// Rollback operation code and US_LNRT response code. (R) (mandatory) (4-byte)
97//
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
101// Rollback operation code and US_LNCD response code. (R) (mandatory) (4-byte)
102//
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 ),
119 AllowedAttributeMask: 0xffc0,
120 AttributeDefinitions: AttributeDefinitionMap{
121 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 }
136}
137
138// NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart3 (class ID 451) creates the basic
139// Managed Entity definition that is used to validate an ME of this type that
140// is received from or transmitted to the OMCC.
141func NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart3(params ...ParamData) (*ManagedEntity, OmciErrors) {
142 return NewManagedEntity(*twdmchanneltuningperformancemonitoringhistorydatapart3BME, params...)
143}