blob: aa5ef38760377a083cd35355894ea3f6c2809271 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
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 */
20package generated
21
22import "github.com/deckarep/golang-set"
23
24const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3ClassId ClassID = ClassID(448)
25
26var twdmchannelploamperformancemonitoringhistorydatapart3BME *ManagedEntityDefinition
27
28// TwdmChannelPloamPerformanceMonitoringHistoryDataPart3 (class ID #448)
29// This ME collects remaining PLOAM-related PM data associated with the slot/circuit pack, hosting
30// one or more ANI-G MEs, for a specific TWDM channel. Instances of this ME are created and deleted
31// by the OLT.
32//
33// This ME contains the counters related to transmitted upstream PLOAM messages. All these counters
34// are characterized as optional in clause 14 of [ITU-T  G.989.3].
35//
36// For a complete discussion of generic PM architecture, refer to clause I.4.
37//
38// Relationships
39// An instance of this ME is associated with an instance of TWDM channel ME.
40//
41// Attributes
42// Managed Entity Id
43// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
44// identical ID, this ME is implicitly linked to an instance of the TWDM channel ME. (R,
45// setbycreate) (mandatory) (2 bytes)
46//
47// Interval End Time
48// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
49// (mandatory) (1 byte)
50//
51// Threshold Data 1_2 Id
52// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
53// that contains PM threshold values. (R, W, setbycreate) (mandatory) (2 bytes)
54//
55// Upstream Ploam Message Count
56// Upstream PLOAM message count: The aggregate counter of PLOAM messages, other than AK PLOAM MT,
57// transmitted by the given ONU. (R) (mandatory) (4 byte)
58//
59// Serial_Number_Onu In_Band Message Count
60// Serial_Number_ONU (in-band) message count: The counter of transmitted in-band Serial_Number_ONU
61// PLOAM messages. (R) (mandatory) (4 byte)
62//
63// Serial_Number_Onu Amcc Message Count
64// Serial_Number_ONU (AMCC) message count: The counter of transmitted auxiliary management and
65// control channel (AMCC) Serial_Number_ONU PLOAM messages. (R) (mandatory) (4 byte)
66//
67// Registration Message Count
68// Registration message count: The counter of transmitted Registration PLOAM messages. (R)
69// (mandatory) (4 byte)
70//
71// Key_Report Message Count
72// Key_Report message count: The counter of transmitted Key_Report PLOAM messages. (R) (mandatory)
73// (4 byte)
74//
75// Acknowledgement Message Count
76// Acknowledgement message count: The counter of transmitted Registration PLOAM messages. (R)
77// (mandatory) (4 byte)
78//
79// Sleep_Request Message Count
80// Sleep_Request message count: The counter of transmitted Sleep_Request PLOAM messages. (R)
81// (mandatory) (4 byte)
82//
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
92// Power_Consumption_Report message count: The counter of transmitted Power_Consumption_Report
93// PLOAM messages. (R) (mandatory) (4 byte)
94//
95// Change_Power_Level Parameter Error Count
96// Change_Power_Level parameter error count: The counter of transmitted Acknowledgement PLOAM
97// messages with Parameter Error completion code in response to Change_Power_Level PLOAM message.
98// (R) (mandatory) (4 byte)
99//
100type TwdmChannelPloamPerformanceMonitoringHistoryDataPart3 struct {
101 ManagedEntityDefinition
102 Attributes AttributeValueMap
103}
104
105func init() {
106 twdmchannelploamperformancemonitoringhistorydatapart3BME = &ManagedEntityDefinition{
107 Name: "TwdmChannelPloamPerformanceMonitoringHistoryDataPart3",
108 ClassID: 448,
109 MessageTypes: mapset.NewSetWith(
110 Create,
111 Delete,
112 Get,
113 GetCurrentData,
114 Set,
115 ),
116 AllowedAttributeMask: 0XFFF8,
117 AttributeDefinitions: AttributeDefinitionMap{
118 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
119 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
120 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
121 3: Uint32Field("UpstreamPloamMessageCount", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
122 4: Uint32Field("SerialNumberOnuInBandMessageCount", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
123 5: Uint32Field("SerialNumberOnuAmccMessageCount", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
124 6: Uint32Field("RegistrationMessageCount", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
125 7: Uint32Field("KeyReportMessageCount", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
126 8: Uint32Field("AcknowledgementMessageCount", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
127 9: Uint32Field("SleepRequestMessageCount", 0, mapset.NewSetWith(Read), false, false, false, false, 9),
128 10: Uint32Field("TuningResponseAckNackMessageCount", 0, mapset.NewSetWith(Read), false, false, false, false, 10),
129 11: Uint32Field("TuningResponseCompleteURollbackMessageCount", 0, mapset.NewSetWith(Read), false, false, false, false, 11),
130 12: Uint32Field("PowerConsumptionReportMessageCount", 0, mapset.NewSetWith(Read), false, false, false, false, 12),
131 13: Uint32Field("ChangePowerLevelParameterErrorCount", 0, mapset.NewSetWith(Read), false, false, false, false, 13),
132 },
133 }
134}
135
136// NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart3 (class ID 448 creates the basic
137// Managed Entity definition that is used to validate an ME of this type that
138// is received from the wire, about to be sent on the wire.
139func NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart3(params ...ParamData) (*ManagedEntity, OmciErrors) {
140 return NewManagedEntity(twdmchannelploamperformancemonitoringhistorydatapart3BME, params...)
141}