blob: 99dbe51b7cd7d0dad55919a3a7a7666b565ad6b8 [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 */
Chip Boling34ebcb62021-02-02 12:13:58 -060017/*
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// TwdmChannelPloamPerformanceMonitoringHistoryDataPart3ClassID is the 16-bit ID for the OMCI
29// Managed entity TWDM channel PLOAM performance monitoring history data part 3
Chip Boling610117d2021-09-09 11:24:34 -050030const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3ClassID = ClassID(448) // 0x01c0
Chip Boling6e27b352020-02-14 09:10:01 -060031
32var twdmchannelploamperformancemonitoringhistorydatapart3BME *ManagedEntityDefinition
33
Chip Boling610117d2021-09-09 11:24:34 -050034// TwdmChannelPloamPerformanceMonitoringHistoryDataPart3 (Class ID: #448 / 0x01c0)
Chip Boling6e27b352020-02-14 09:10:01 -060035// 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
Chip Boling610117d2021-09-09 11:24:34 -050049// 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)
Chip Boling6e27b352020-02-14 09:10:01 -060051//
52// Interval End Time
Chip Boling610117d2021-09-09 11:24:34 -050053// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Chip Boling6e27b352020-02-14 09:10:01 -060054//
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
Chip Boling610117d2021-09-09 11:24:34 -050060// The aggregate counter of PLOAM messages, other than AK PLOAM MT, transmitted by the given ONU.
61// (R) (mandatory) (4-byte)
Chip Boling6e27b352020-02-14 09:10:01 -060062//
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
Chip Boling610117d2021-09-09 11:24:34 -050072// The counter of transmitted Registration PLOAM messages. (R) (mandatory) (4-byte)
Chip Boling6e27b352020-02-14 09:10:01 -060073//
74// Key_Report Message Count
Chip Boling610117d2021-09-09 11:24:34 -050075// The counter of transmitted Key_Report PLOAM messages. (R) (mandatory) (4-byte)
Chip Boling6e27b352020-02-14 09:10:01 -060076//
77// Acknowledgement Message Count
Chip Boling610117d2021-09-09 11:24:34 -050078// The counter of transmitted Registration PLOAM messages. (R) (mandatory) (4-byte)
Chip Boling6e27b352020-02-14 09:10:01 -060079//
80// Sleep_Request Message Count
Chip Boling610117d2021-09-09 11:24:34 -050081// The counter of transmitted Sleep_Request PLOAM messages. (R) (mandatory) (4-byte)
Chip Boling6e27b352020-02-14 09:10:01 -060082//
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
Chip Boling610117d2021-09-09 11:24:34 -050092// The counter of transmitted Power_Consumption_Report PLOAM messages. (R) (mandatory) (4-byte)
Chip Boling6e27b352020-02-14 09:10:01 -060093//
94// Change_Power_Level Parameter Error Count
Chip Boling610117d2021-09-09 11:24:34 -050095// 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)
Chip Boling6e27b352020-02-14 09:10:01 -060097//
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,
Chip Boling6e27b352020-02-14 09:10:01 -0600111 Set,
Chip Boling610117d2021-09-09 11:24:34 -0500112 GetCurrentData,
Chip Boling6e27b352020-02-14 09:10:01 -0600113 ),
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,
Chip Boling34ebcb62021-02-02 12:13:58 -0600133 Alarms: AlarmMap{
134 0: "Change_Power_Level parameter error count",
135 },
Chip Boling6e27b352020-02-14 09:10:01 -0600136 }
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}