blob: e9f55ac1ade08ad1d4f83789ab61bfd1c8ed4ebf [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// TwdmChannelPloamPerformanceMonitoringHistoryDataPart2ClassID is the 16-bit ID for the OMCI
26// Managed entity TWDM channel PLOAM performance monitoring history data part 2
27const TwdmChannelPloamPerformanceMonitoringHistoryDataPart2ClassID ClassID = ClassID(447)
28
29var twdmchannelploamperformancemonitoringhistorydatapart2BME *ManagedEntityDefinition
30
31// TwdmChannelPloamPerformanceMonitoringHistoryDataPart2 (class ID #447)
32// This ME collects additional PLOAM-related PM data associated with the slot/circuit pack, hosting
33// one or more ANI-G MEs, for a specific TWDM channel. Instances of this ME are created and deleted
34// by the OLT.
35//
36// The downstream PLOAM message counts of this ME include only the received PLOAM messages
37// pertaining to the given ONU, i.e.:
38//
39// - unicast PLOAM messages, addressed by ONU-ID;
40//
41// - broadcast PLOAM messages, addressed by serial number;
42//
43// - broadcast PLOAM messages, addressed to all ONUs on the PON.
44//
45// All these counters are characterized as optional in clause 14 of [ITU-T- G.989.3].
46//
47// For a complete discussion of generic PM architecture, refer to clause I.4.
48//
49// Relationships
50// An instance of this ME is associated with an instance of TWDM channel ME.
51//
52// Attributes
53// Managed Entity Id
54// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
55// identical ID, this ME is implicitly linked to an instance of the TWDM channel ME. (R,
56// setbycreate) (mandatory) (2-bytes)
57//
58// Interval End Time
59// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
60// (mandatory) (1-byte)
61//
62// Threshold Data 1_2 Id
63// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
64// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
65//
66// System_Profile Message Count
67// System_Profile message count: The counter of received System_Profile PLOAM messages. (R)
68// (mandatory) (4-byte)
69//
70// Channel_Profile Message Count
71// Channel_Profile message count: The counter of received Channel_Profile PLOAM messages. (R)
72// (mandatory) (4-byte)
73//
74// Burst_Profile Message Count
75// Burst_Profile message count: The counter of received Burst_Profile PLOAM messages. (R)
76// (mandatory) (4-byte)
77//
78// Assign_Onu_Id Message Count
79// Assign_ONU-ID message count: The counter of received Assign_ONU-ID PLOAM messages. (R)
80// (mandatory) (4-byte)
81//
82// Unsatisfied Adjust_Tx_Wavelength Requests
83// Unsatisfied Adjust_Tx_Wavelength requests: The counter of Adjust_Tx_Wavelength requests not
84// applied or partially applied due to target US wavelength being out of Tx tuning range. (R)
85// (mandatory) (4-byte)
86//
87// Deactivate_Onu_Id Message Count
88// Deactivate_ONU-ID message count: The counter of received Deactivate_ONU-ID PLOAM messages. (R)
89// (mandatory) (4-byte)
90//
91// Disable_Serial_Number Message Count
92// Disable_Serial_Number message count: The counter of received Disable_Serial_Number PLOAM
93// messages. (R) (mandatory) (4-byte)
94//
95// Request_Registration Message Count
96// Request_Registration message count: The counter of received Request_Registration PLOAM messages.
97// (R) (mandatory) (4-byte)
98//
99// Assign_Alloc_Id Message Count
100// Assign_Alloc-ID message count: The counter of received Assign_Alloc-ID PLOAM messages. (R)
101// (mandatory) (4-byte)
102//
103// Key_Control Message Count
104// Key_Control message count: The counter of received Key_Control PLOAM messages. (R) (mandatory)
105// (4-byte)
106//
107// Sleep_Allow Message Count
108// Sleep_Allow message count: The counter of received Sleep_Allow PLOAM messages. (R) (mandatory)
109// (4-byte)
110//
111// Tuning_Control_Request Message Count
112// Tuning_Control/Request message count: The counter of received Tuning_Control PLOAM messages with
113// Request operation code. (R) (mandatory) (4-byte)
114//
115// Tuning_Control_Complete_D Message Count
116// Tuning_Control/Complete_d message count: The counter of received Tuning_Control PLOAM messages
117// with Complete_d operation code. (R) (mandatory) (4-byte)
118//
119// Calibration_Request Message Count
120// Calibration_Request message count: The counter of received Calibration_Request PLOAM messages.
121// (R) (mandatory) (4-byte)
122//
123type TwdmChannelPloamPerformanceMonitoringHistoryDataPart2 struct {
124 ManagedEntityDefinition
125 Attributes AttributeValueMap
126}
127
128func init() {
129 twdmchannelploamperformancemonitoringhistorydatapart2BME = &ManagedEntityDefinition{
130 Name: "TwdmChannelPloamPerformanceMonitoringHistoryDataPart2",
131 ClassID: 447,
132 MessageTypes: mapset.NewSetWith(
133 Create,
134 Delete,
135 Get,
136 GetCurrentData,
137 Set,
138 ),
139 AllowedAttributeMask: 0xffff,
140 AttributeDefinitions: AttributeDefinitionMap{
141 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
142 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
143 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
144 3: Uint32Field("SystemProfileMessageCount", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
145 4: Uint32Field("ChannelProfileMessageCount", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
146 5: Uint32Field("BurstProfileMessageCount", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
147 6: Uint32Field("AssignOnuIdMessageCount", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
148 7: Uint32Field("UnsatisfiedAdjustTxWavelengthRequests", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
149 8: Uint32Field("DeactivateOnuIdMessageCount", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
150 9: Uint32Field("DisableSerialNumberMessageCount", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
151 10: Uint32Field("RequestRegistrationMessageCount", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
152 11: Uint32Field("AssignAllocIdMessageCount", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
153 12: Uint32Field("KeyControlMessageCount", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
154 13: Uint32Field("SleepAllowMessageCount", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
155 14: Uint32Field("TuningControlRequestMessageCount", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14),
156 15: Uint32Field("TuningControlCompleteDMessageCount", CounterAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, false, false, 15),
157 16: Uint32Field("CalibrationRequestMessageCount", CounterAttributeType, 0x0001, 0, mapset.NewSetWith(Read), false, false, false, 16),
158 },
159 Access: CreatedByOlt,
160 Support: UnknownSupport,
161 }
162}
163
164// NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart2 (class ID 447) creates the basic
165// Managed Entity definition that is used to validate an ME of this type that
166// is received from or transmitted to the OMCC.
167func NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
168 return NewManagedEntity(*twdmchannelploamperformancemonitoringhistorydatapart2BME, params...)
169}