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