blob: b1ef66bd57db7268e4e190c6a3da6c7f8292e64f [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// TwdmChannelPloamPerformanceMonitoringHistoryDataPart3ClassID is the 16-bit ID for the OMCI
29// Managed entity TWDM channel PLOAM performance monitoring history data part 3
30const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3ClassID ClassID = ClassID(448)
31
32var twdmchannelploamperformancemonitoringhistorydatapart3BME *ManagedEntityDefinition
33
34// TwdmChannelPloamPerformanceMonitoringHistoryDataPart3 (class ID #448)
35// 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
49// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
50// identical ID, this ME is implicitly linked to an instance of the TWDM channel ME. (R,
51// setbycreate) (mandatory) (2-bytes)
52//
53// Interval End Time
54// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
55// (mandatory) (1-byte)
56//
57// Threshold Data 1_2 Id
58// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
59// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
60//
61// Upstream Ploam Message Count
62// Upstream PLOAM message count: The aggregate counter of PLOAM messages, other than AK PLOAM MT,
63// transmitted by the given ONU. (R) (mandatory) (4-byte)
64//
65// Serial_Number_Onu In_Band Message Count
66// Serial_Number_ONU (in-band) message count: The counter of transmitted in-band Serial_Number_ONU
67// PLOAM messages. (R) (mandatory) (4-byte)
68//
69// Serial_Number_Onu Amcc Message Count
70// Serial_Number_ONU (AMCC) message count: The counter of transmitted auxiliary management and
71// control channel (AMCC) Serial_Number_ONU PLOAM messages. (R) (mandatory) (4-byte)
72//
73// Registration Message Count
74// Registration message count: The counter of transmitted Registration PLOAM messages. (R)
75// (mandatory) (4-byte)
76//
77// Key_Report Message Count
78// Key_Report message count: The counter of transmitted Key_Report PLOAM messages. (R) (mandatory)
79// (4-byte)
80//
81// Acknowledgement Message Count
82// Acknowledgement message count: The counter of transmitted Registration PLOAM messages. (R)
83// (mandatory) (4-byte)
84//
85// Sleep_Request Message Count
86// Sleep_Request message count: The counter of transmitted Sleep_Request PLOAM messages. (R)
87// (mandatory) (4-byte)
88//
89// Tuning_Response Ack_Nack Message Count
90// Tuning_Response (ACK/NACK) message count: The counter of transmitted Tuning_Response PLOAM
91// messages with ACK/NACK operation code. (R) (mandatory) (4-byte)
92//
93// Tuning_Response Complete_U_Rollback Message Count
94// Tuning_Response (Complete_u/Rollback) message count: The counter of transmitted Tuning_Response
95// PLOAM messages with Complete_u/Rollback operation code. (R) (mandatory) (4-byte)
96//
97// Power_Consumption_Report Message Count
98// Power_Consumption_Report message count: The counter of transmitted Power_Consumption_Report
99// PLOAM messages. (R) (mandatory) (4-byte)
100//
101// Change_Power_Level Parameter Error Count
102// Change_Power_Level parameter error count: The counter of transmitted Acknowledgement PLOAM
103// messages with Parameter Error completion code in response to Change_Power_Level PLOAM message.
104// (R) (mandatory) (4-byte)
105//
106type TwdmChannelPloamPerformanceMonitoringHistoryDataPart3 struct {
107 ManagedEntityDefinition
108 Attributes AttributeValueMap
109}
110
111func init() {
112 twdmchannelploamperformancemonitoringhistorydatapart3BME = &ManagedEntityDefinition{
113 Name: "TwdmChannelPloamPerformanceMonitoringHistoryDataPart3",
114 ClassID: 448,
115 MessageTypes: mapset.NewSetWith(
116 Create,
117 Delete,
118 Get,
119 GetCurrentData,
120 Set,
121 ),
122 AllowedAttributeMask: 0xfff8,
123 AttributeDefinitions: AttributeDefinitionMap{
124 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
125 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
126 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
127 3: Uint32Field("UpstreamPloamMessageCount", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
128 4: Uint32Field("SerialNumberOnuInBandMessageCount", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
129 5: Uint32Field("SerialNumberOnuAmccMessageCount", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
130 6: Uint32Field("RegistrationMessageCount", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
131 7: Uint32Field("KeyReportMessageCount", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
132 8: Uint32Field("AcknowledgementMessageCount", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
133 9: Uint32Field("SleepRequestMessageCount", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
134 10: Uint32Field("TuningResponseAckNackMessageCount", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
135 11: Uint32Field("TuningResponseCompleteURollbackMessageCount", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
136 12: Uint32Field("PowerConsumptionReportMessageCount", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
137 13: Uint32Field("ChangePowerLevelParameterErrorCount", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
138 },
139 Access: CreatedByOlt,
140 Support: UnknownSupport,
141 }
142}
143
144// NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart3 (class ID 448) creates the basic
145// Managed Entity definition that is used to validate an ME of this type that
146// is received from or transmitted to the OMCC.
147func NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart3(params ...ParamData) (*ManagedEntity, OmciErrors) {
148 return NewManagedEntity(*twdmchannelploamperformancemonitoringhistorydatapart3BME, params...)
149}