blob: 99dbe51b7cd7d0dad55919a3a7a7666b565ad6b8 [file] [log] [blame]
Matteo Scandolof9d43412021-01-12 11:11:34 -08001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
4
5 * 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
8
9 * http://www.apache.org/licenses/LICENSE-2.0
10
11 * 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 */
23
24package generated
25
26import "github.com/deckarep/golang-set"
27
28// TwdmChannelPloamPerformanceMonitoringHistoryDataPart3ClassID is the 16-bit ID for the OMCI
29// Managed entity TWDM channel PLOAM performance monitoring history data part 3
Andrea Campanella10426e22021-10-15 17:58:04 +020030const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3ClassID = ClassID(448) // 0x01c0
Matteo Scandolof9d43412021-01-12 11:11:34 -080031
32var twdmchannelploamperformancemonitoringhistorydatapart3BME *ManagedEntityDefinition
33
Andrea Campanella10426e22021-10-15 17:58:04 +020034// TwdmChannelPloamPerformanceMonitoringHistoryDataPart3 (Class ID: #448 / 0x01c0)
Matteo Scandolof9d43412021-01-12 11:11:34 -080035// This ME collects remaining PLOAM-related PM data associated with the slot/circuit pack, hosting
36// one or more ANI-G MEs, for a specific TWDM channel. Instances of this ME are created and deleted
37// by the OLT.
38//
39// This ME contains the counters related to transmitted upstream PLOAM messages. All these counters
40// are characterized as optional in clause 14 of [ITU-T- G.989.3].
41//
42// For a complete discussion of generic PM architecture, refer to clause I.4.
43//
44// Relationships
45// An instance of this ME is associated with an instance of TWDM channel ME.
46//
47// Attributes
48// Managed Entity Id
Andrea Campanella10426e22021-10-15 17:58:04 +020049// This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is
50// implicitly linked to an instance of the TWDM channel ME. (R, setbycreate) (mandatory) (2-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080051//
52// Interval End Time
Andrea Campanella10426e22021-10-15 17:58:04 +020053// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Matteo Scandolof9d43412021-01-12 11:11:34 -080054//
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// Upstream Ploam Message Count
Andrea Campanella10426e22021-10-15 17:58:04 +020060// The aggregate counter of PLOAM messages, other than AK PLOAM MT, transmitted by the given ONU.
61// (R) (mandatory) (4-byte)
Matteo Scandolof9d43412021-01-12 11:11:34 -080062//
63// Serial_Number_Onu In_Band Message Count
64// Serial_Number_ONU (in-band) message count: The counter of transmitted in-band Serial_Number_ONU
65// PLOAM messages. (R) (mandatory) (4-byte)
66//
67// Serial_Number_Onu Amcc Message Count
68// Serial_Number_ONU (AMCC) message count: The counter of transmitted auxiliary management and
69// control channel (AMCC) Serial_Number_ONU PLOAM messages. (R) (mandatory) (4-byte)
70//
71// Registration Message Count
Andrea Campanella10426e22021-10-15 17:58:04 +020072// The counter of transmitted Registration PLOAM messages. (R) (mandatory) (4-byte)
Matteo Scandolof9d43412021-01-12 11:11:34 -080073//
74// Key_Report Message Count
Andrea Campanella10426e22021-10-15 17:58:04 +020075// The counter of transmitted Key_Report PLOAM messages. (R) (mandatory) (4-byte)
Matteo Scandolof9d43412021-01-12 11:11:34 -080076//
77// Acknowledgement Message Count
Andrea Campanella10426e22021-10-15 17:58:04 +020078// The counter of transmitted Registration PLOAM messages. (R) (mandatory) (4-byte)
Matteo Scandolof9d43412021-01-12 11:11:34 -080079//
80// Sleep_Request Message Count
Andrea Campanella10426e22021-10-15 17:58:04 +020081// The counter of transmitted Sleep_Request PLOAM messages. (R) (mandatory) (4-byte)
Matteo Scandolof9d43412021-01-12 11:11:34 -080082//
83// Tuning_Response Ack_Nack Message Count
84// Tuning_Response (ACK/NACK) message count: The counter of transmitted Tuning_Response PLOAM
85// messages with ACK/NACK operation code. (R) (mandatory) (4-byte)
86//
87// Tuning_Response Complete_U_Rollback Message Count
88// Tuning_Response (Complete_u/Rollback) message count: The counter of transmitted Tuning_Response
89// PLOAM messages with Complete_u/Rollback operation code. (R) (mandatory) (4-byte)
90//
91// Power_Consumption_Report Message Count
Andrea Campanella10426e22021-10-15 17:58:04 +020092// The counter of transmitted Power_Consumption_Report PLOAM messages. (R) (mandatory) (4-byte)
Matteo Scandolof9d43412021-01-12 11:11:34 -080093//
94// Change_Power_Level Parameter Error Count
Andrea Campanella10426e22021-10-15 17:58:04 +020095// The counter of transmitted Acknowledgement PLOAM messages with Parameter Error completion code
96// in response to Change_Power_Level PLOAM message. (R) (mandatory) (4-byte)
Matteo Scandolof9d43412021-01-12 11:11:34 -080097//
98type TwdmChannelPloamPerformanceMonitoringHistoryDataPart3 struct {
99 ManagedEntityDefinition
100 Attributes AttributeValueMap
101}
102
103func init() {
104 twdmchannelploamperformancemonitoringhistorydatapart3BME = &ManagedEntityDefinition{
105 Name: "TwdmChannelPloamPerformanceMonitoringHistoryDataPart3",
106 ClassID: 448,
107 MessageTypes: mapset.NewSetWith(
108 Create,
109 Delete,
110 Get,
Matteo Scandolof9d43412021-01-12 11:11:34 -0800111 Set,
Andrea Campanella10426e22021-10-15 17:58:04 +0200112 GetCurrentData,
Matteo Scandolof9d43412021-01-12 11:11:34 -0800113 ),
114 AllowedAttributeMask: 0xfff8,
115 AttributeDefinitions: AttributeDefinitionMap{
116 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
117 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
118 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
119 3: Uint32Field("UpstreamPloamMessageCount", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
120 4: Uint32Field("SerialNumberOnuInBandMessageCount", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
121 5: Uint32Field("SerialNumberOnuAmccMessageCount", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
122 6: Uint32Field("RegistrationMessageCount", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
123 7: Uint32Field("KeyReportMessageCount", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
124 8: Uint32Field("AcknowledgementMessageCount", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
125 9: Uint32Field("SleepRequestMessageCount", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
126 10: Uint32Field("TuningResponseAckNackMessageCount", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
127 11: Uint32Field("TuningResponseCompleteURollbackMessageCount", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
128 12: Uint32Field("PowerConsumptionReportMessageCount", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
129 13: Uint32Field("ChangePowerLevelParameterErrorCount", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
130 },
131 Access: CreatedByOlt,
132 Support: UnknownSupport,
133 Alarms: AlarmMap{
134 0: "Change_Power_Level parameter error count",
135 },
136 }
137}
138
139// NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart3 (class ID 448) creates the basic
140// Managed Entity definition that is used to validate an ME of this type that
141// is received from or transmitted to the OMCC.
142func NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart3(params ...ParamData) (*ManagedEntity, OmciErrors) {
143 return NewManagedEntity(*twdmchannelploamperformancemonitoringhistorydatapart3BME, params...)
144}