blob: 95a3bcce0fe2067b2f5038a74c9cffc506d4339a [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
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 */
20
21package generated
22
23import "github.com/deckarep/golang-set"
24
25// TwdmChannelTuningPerformanceMonitoringHistoryDataPart3ClassID is the 16-bit ID for the OMCI
26// Managed entity TWDM channel tuning performance monitoring history data part 3
27const TwdmChannelTuningPerformanceMonitoringHistoryDataPart3ClassID ClassID = ClassID(451)
28
29var twdmchanneltuningperformancemonitoringhistorydatapart3BME *ManagedEntityDefinition
30
31// TwdmChannelTuningPerformanceMonitoringHistoryDataPart3 (class ID #451)
32// This ME collects remaining tuning-control-related PM data associated with the slot/circuit pack,
33// hosting one or more ANI-G MEs, for a specific TWDM channel. Instances of this ME are created and
34// deleted by the OLT.
35//
36// The relevant events this ME is concerned with are counted towards the PM statistics associated
37// with the source TWDM channel. This ME contains the counters characterized as optional in clause
38// 14 of [ITU-T-G.989.3].
39//
40// For a complete discussion of generic PM architecture, refer to clause I.4.
41//
42// Relationships
43// An instance of this ME is associated with an instance of TWDM channel ME.
44//
45// Attributes
46// Managed Entity Id
47// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
48// identical ID, this ME is implicitly linked to an instance of the TWDM channel ME. (R,
49// setbycreate) (mandatory) (2-bytes)
50//
51// Interval End Time
52// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
53// (mandatory) (1-byte)
54//
55// Threshold Data 1_2 Id
56// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
57// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
58//
59// Tuning Control Requests Rollback_Ds_Albl
60// Tuning control requests Rollback/DS_ALBL: The counter of controlled tuning attempts that failed
61// due to downstream administrative label inconsistency, as indicated by the Tuning_Response PLOAM
62// message with Rollback operation code and DS_ALBL response code. (R) (mandatory) (4-byte)
63//
64// Tuning Control Requests Rollback_Ds_Lktp
65// Tuning control requests Rollback/DS_LKTP: The counter of controlled tuning attempts that failed
66// due to downstream optical link type inconsistency, as indicated by the Tuning_Response PLOAM
67// message with Rollback operation code and DS_LKTP response code. (R) (mandatory) (4-byte)
68//
69// Tuning Control Requests Rollback_Us_Albl
70// Tuning control requests Rollback/US_ALBL: The counter of controlled tuning attempts that failed
71// due to upstream administrative label violation, as indicated by the Tuning_Response PLOAM
72// message with Rollback operation code and US_ALBL response code. (R) (mandatory) (4-byte)
73//
74// Tuning Control Requests Rollback_Us_Void
75// Tuning control requests Rollback/US_VOID: The counter of controlled tuning attempts that failed
76// due to the target upstream wavelength channel descriptor being void, as indicated by the
77// Tuning_Response PLOAM message with Rollback operation code and US_VOID response code. (R)
78// (mandatory) (4-byte)
79//
80// Tuning Control Requests Rollback_Us_Tunr
81// Tuning control requests Rollback/US_TUNR: The counter of controlled tuning attempts that failed
82// due to the transmitter tuning range violation, as indicated by the Tuning_Response PLOAM message
83// with Rollback operation code and US_TUNR response code. (R) (mandatory) (4-byte)
84//
85// Tuning Control Requests Rollback_Us_Lktp
86// Tuning control requests Rollback/US_LKTP: The counter of controlled tuning attempts that failed
87// due to the upstream optical link type violation, as indicated by the Tuning_Response PLOAM
88// message with Rollback operation code and US_LKTP response code. (R) (mandatory) (4-byte)
89//
90// Tuning Control Requests Rollback_Us_Lnrt
91// Tuning control requests Rollback/US_LNRT: The counter of controlled tuning attempts that failed
92// due to the upstream line rate violation, as indicated by the Tuning_Response PLOAM message with
93// Rollback operation code and US_LNRT response code. (R) (mandatory) (4-byte)
94//
95// Tuning Control Requests Rollback_Us_Lncd
96// Tuning control requests Rollback/US_LNCD: The counter of controlled tuning attempts that failed
97// due to the upstream line code violation, as indicated by the Tuning_Response PLOAM message with
98// Rollback operation code and US_LNCD response code. (R) (mandatory) (4-byte)
99//
100type TwdmChannelTuningPerformanceMonitoringHistoryDataPart3 struct {
101 ManagedEntityDefinition
102 Attributes AttributeValueMap
103}
104
105func init() {
106 twdmchanneltuningperformancemonitoringhistorydatapart3BME = &ManagedEntityDefinition{
107 Name: "TwdmChannelTuningPerformanceMonitoringHistoryDataPart3",
108 ClassID: 451,
109 MessageTypes: mapset.NewSetWith(
110 Create,
111 Delete,
112 Get,
113 GetCurrentData,
114 Set,
115 ),
116 AllowedAttributeMask: 0xffc0,
117 AttributeDefinitions: AttributeDefinitionMap{
118 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
119 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
120 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
121 3: Uint32Field("TuningControlRequestsRollbackDsAlbl", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
122 4: Uint32Field("TuningControlRequestsRollbackDsLktp", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
123 5: Uint32Field("TuningControlRequestsRollbackUsAlbl", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
124 6: Uint32Field("TuningControlRequestsRollbackUsVoid", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
125 7: Uint32Field("TuningControlRequestsRollbackUsTunr", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
126 8: Uint32Field("TuningControlRequestsRollbackUsLktp", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
127 9: Uint32Field("TuningControlRequestsRollbackUsLnrt", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
128 10: Uint32Field("TuningControlRequestsRollbackUsLncd", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
129 },
130 Access: CreatedByOlt,
131 Support: UnknownSupport,
132 }
133}
134
135// NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart3 (class ID 451) creates the basic
136// Managed Entity definition that is used to validate an ME of this type that
137// is received from or transmitted to the OMCC.
138func NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart3(params ...ParamData) (*ManagedEntity, OmciErrors) {
139 return NewManagedEntity(*twdmchanneltuningperformancemonitoringhistorydatapart3BME, params...)
140}