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