blob: 9e7a6083a3bda86997289c32498537a9e17247ef [file] [log] [blame]
Holger Hildebrandtfa074992020-03-27 15:42:06 +00001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +00004 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +00005 * 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
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +00008 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +00009 * http://www.apache.org/licenses/LICENSE-2.0
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000010 *
Holger Hildebrandtfa074992020-03-27 15:42:06 +000011 * 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 */
Himani Chawlaac1f5ad2021-02-04 21:21:54 +053017/*
Holger Hildebrandtfa074992020-03-27 15:42:06 +000018 * 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// TwdmChannelPloamPerformanceMonitoringHistoryDataPart1ClassID is the 16-bit ID for the OMCI
29// Managed entity TWDM channel PLOAM performance monitoring history data part 1
mpagenko836a1fd2021-11-01 16:12:42 +000030const TwdmChannelPloamPerformanceMonitoringHistoryDataPart1ClassID = ClassID(446) // 0x01be
Holger Hildebrandtfa074992020-03-27 15:42:06 +000031
32var twdmchannelploamperformancemonitoringhistorydatapart1BME *ManagedEntityDefinition
33
mpagenko836a1fd2021-11-01 16:12:42 +000034// TwdmChannelPloamPerformanceMonitoringHistoryDataPart1 (Class ID: #446 / 0x01be)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000035// This ME collects certain 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// This ME includes all PLOAM PM counters characterized as mandatory in clause 14 of [ITU-
49// T-G.989.3].
50//
51// For a complete discussion of generic PM architecture, refer to clause I.4.
52//
53// Relationships
54// An instance of this ME is associated with an instance of TWDM channel ME.
55//
56// Attributes
57// Managed Entity Id
mpagenko836a1fd2021-11-01 16:12:42 +000058// This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is
59// implicitly linked to an instance of the TWDM channel ME. (R, setbycreate) (mandatory) (2-bytes)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000060//
61// Interval End Time
mpagenko836a1fd2021-11-01 16:12:42 +000062// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000063//
64// Threshold Data 1_2 Id
65// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
66// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
67//
68// Ploam Mic Errors
mpagenko836a1fd2021-11-01 16:12:42 +000069// The counter of received PLOAM messages that remain unparsable due to MIC error. (R) (mandatory)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000070// (4-byte)
71//
mpagenko836a1fd2021-11-01 16:12:42 +000072// Downstream Ploam Message Count
73// The counter of received broadcast and unicast PLOAM messages pertaining to the given ONU. (R)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000074// (mandatory) (4-byte)
75//
mpagenko836a1fd2021-11-01 16:12:42 +000076// Ranging_Time Message Count
77// The counter of received Ranging_Time PLOAM messages. (R) (mandatory) (4-byte)
78//
79// Protection_Control Message Count
80// The counter of received Protection_Control PLOAM messages. (R) (mandatory) (4-byte)
81//
Holger Hildebrandtfa074992020-03-27 15:42:06 +000082// Adjust_Tx_Wavelength Message Count
mpagenko836a1fd2021-11-01 16:12:42 +000083// The counter of received Adjust_Tx_Wavelength PLOAM messages. (R) (mandatory) (4-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000084//
85// Adjust_Tx_Wavelength Adjustment Amplitude
mpagenko836a1fd2021-11-01 16:12:42 +000086// An estimator of the absolute value of the transmission wavelength adjustment. (R) (mandatory)
87// (4-byte)
Holger Hildebrandtfa074992020-03-27 15:42:06 +000088//
89type TwdmChannelPloamPerformanceMonitoringHistoryDataPart1 struct {
90 ManagedEntityDefinition
91 Attributes AttributeValueMap
92}
93
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +000094// Attribute name constants
95
96const TwdmChannelPloamPerformanceMonitoringHistoryDataPart1_IntervalEndTime = "IntervalEndTime"
97const TwdmChannelPloamPerformanceMonitoringHistoryDataPart1_ThresholdData12Id = "ThresholdData12Id"
98const TwdmChannelPloamPerformanceMonitoringHistoryDataPart1_PloamMicErrors = "PloamMicErrors"
99const TwdmChannelPloamPerformanceMonitoringHistoryDataPart1_DownstreamPloamMessageCount = "DownstreamPloamMessageCount"
100const TwdmChannelPloamPerformanceMonitoringHistoryDataPart1_RangingTimeMessageCount = "RangingTimeMessageCount"
101const TwdmChannelPloamPerformanceMonitoringHistoryDataPart1_ProtectionControlMessageCount = "ProtectionControlMessageCount"
102const TwdmChannelPloamPerformanceMonitoringHistoryDataPart1_AdjustTxWavelengthMessageCount = "AdjustTxWavelengthMessageCount"
103const TwdmChannelPloamPerformanceMonitoringHistoryDataPart1_AdjustTxWavelengthAdjustmentAmplitude = "AdjustTxWavelengthAdjustmentAmplitude"
104
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000105func init() {
106 twdmchannelploamperformancemonitoringhistorydatapart1BME = &ManagedEntityDefinition{
107 Name: "TwdmChannelPloamPerformanceMonitoringHistoryDataPart1",
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000108 ClassID: TwdmChannelPloamPerformanceMonitoringHistoryDataPart1ClassID,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000109 MessageTypes: mapset.NewSetWith(
110 Create,
111 Delete,
112 Get,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000113 Set,
mpagenko836a1fd2021-11-01 16:12:42 +0000114 GetCurrentData,
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000115 ),
116 AllowedAttributeMask: 0xff00,
117 AttributeDefinitions: AttributeDefinitionMap{
Holger Hildebrandt3ac49bd2022-02-07 17:46:43 +0000118 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
119 1: ByteField(TwdmChannelPloamPerformanceMonitoringHistoryDataPart1_IntervalEndTime, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
120 2: Uint16Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart1_ThresholdData12Id, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
121 3: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart1_PloamMicErrors, CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
122 4: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart1_DownstreamPloamMessageCount, CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
123 5: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart1_RangingTimeMessageCount, CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
124 6: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart1_ProtectionControlMessageCount, CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
125 7: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart1_AdjustTxWavelengthMessageCount, CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
126 8: Uint32Field(TwdmChannelPloamPerformanceMonitoringHistoryDataPart1_AdjustTxWavelengthAdjustmentAmplitude, CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000127 },
128 Access: CreatedByOlt,
129 Support: UnknownSupport,
Himani Chawlaac1f5ad2021-02-04 21:21:54 +0530130 Alarms: AlarmMap{
131 0: "PLOAM MIC errors",
132 },
Holger Hildebrandtfa074992020-03-27 15:42:06 +0000133 }
134}
135
136// NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart1 (class ID 446) creates the basic
137// Managed Entity definition that is used to validate an ME of this type that
138// is received from or transmitted to the OMCC.
139func NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart1(params ...ParamData) (*ManagedEntity, OmciErrors) {
140 return NewManagedEntity(*twdmchannelploamperformancemonitoringhistorydatapart1BME, params...)
141}