blob: 4e415d1c24627b7860672f685b17f7372c0b8c60 [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
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 */
20
21package generated
22
23import "github.com/deckarep/golang-set"
24
25// TwdmChannelPloamPerformanceMonitoringHistoryDataPart1ClassID is the 16-bit ID for the OMCI
26// Managed entity TWDM channel PLOAM performance monitoring history data part 1
27const TwdmChannelPloamPerformanceMonitoringHistoryDataPart1ClassID ClassID = ClassID(446)
28
29var twdmchannelploamperformancemonitoringhistorydatapart1BME *ManagedEntityDefinition
30
31// TwdmChannelPloamPerformanceMonitoringHistoryDataPart1 (class ID #446)
32// This ME collects certain PLOAM-related PM data associated with the slot/circuit pack, hosting
33// one or more ANI-G MEs, for a specific TWDM channel. Instances of this ME are created and deleted
34// by the OLT.
35//
36// The downstream PLOAM message counts of this ME include only the received PLOAM messages
37// pertaining to the given ONU, i.e.:
38//
39// - unicast PLOAM messages, addressed by ONU-ID;
40//
41// - broadcast PLOAM messages, addressed by serial number;
42//
43// - broadcast PLOAM messages, addressed to all ONUs on the PON.
44//
45// This ME includes all PLOAM PM counters characterized as mandatory in clause 14 of [ITU-
46// T-G.989.3].
47//
48// For a complete discussion of generic PM architecture, refer to clause I.4.
49//
50// Relationships
51// An instance of this ME is associated with an instance of TWDM channel ME.
52//
53// Attributes
54// Managed Entity Id
55// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
56// identical ID, this ME is implicitly linked to an instance of the TWDM channel ME. (R,
57// setbycreate) (mandatory) (2-bytes)
58//
59// Interval End Time
60// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
61// (mandatory) (1-byte)
62//
63// Threshold Data 1_2 Id
64// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
65// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
66//
67// Ploam Mic Errors
68// PLOAM MIC errors: The counter of received PLOAM messages that remain unparsable due to MIC
69// error. (R) (mandatory) (4-byte)
70//
71// Downstream Ploam Message Count
72// Downstream PLOAM message count: The counter of received broadcast and unicast PLOAM messages
73// pertaining to the given ONU. (R) (mandatory) (4-byte)
74//
75// Ranging_Time Message Count
76// Ranging_Time message count: The counter of received Ranging_Time PLOAM messages. (R) (mandatory)
77// (4-byte)
78//
79// Protection_Control Message Count
80// Protection_Control message count: The counter of received Protection_Control PLOAM messages. (R)
81// (mandatory) (4-byte)
82//
83// Adjust_Tx_Wavelength Message Count
84// Adjust_Tx_Wavelength message count: The counter of received Adjust_Tx_Wavelength PLOAM messages.
85// (R) (mandatory) (4-byte)
86//
87// Adjust_Tx_Wavelength Adjustment Amplitude
88// Adjust_Tx_Wavelength adjustment amplitude: An estimator of the absolute value of the
89// transmission wavelength adjustment. (R) (mandatory) (4-byte)
90//
91type TwdmChannelPloamPerformanceMonitoringHistoryDataPart1 struct {
92 ManagedEntityDefinition
93 Attributes AttributeValueMap
94}
95
96func init() {
97 twdmchannelploamperformancemonitoringhistorydatapart1BME = &ManagedEntityDefinition{
98 Name: "TwdmChannelPloamPerformanceMonitoringHistoryDataPart1",
99 ClassID: 446,
100 MessageTypes: mapset.NewSetWith(
101 Create,
102 Delete,
103 Get,
104 GetCurrentData,
105 Set,
106 ),
107 AllowedAttributeMask: 0xff00,
108 AttributeDefinitions: AttributeDefinitionMap{
109 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
110 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
111 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
112 3: Uint32Field("PloamMicErrors", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
113 4: Uint32Field("DownstreamPloamMessageCount", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
114 5: Uint32Field("RangingTimeMessageCount", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
115 6: Uint32Field("ProtectionControlMessageCount", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
116 7: Uint32Field("AdjustTxWavelengthMessageCount", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
117 8: Uint32Field("AdjustTxWavelengthAdjustmentAmplitude", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
118 },
119 Access: CreatedByOlt,
120 Support: UnknownSupport,
121 }
122}
123
124// NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart1 (class ID 446) creates the basic
125// Managed Entity definition that is used to validate an ME of this type that
126// is received from or transmitted to the OMCC.
127func NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart1(params ...ParamData) (*ManagedEntity, OmciErrors) {
128 return NewManagedEntity(*twdmchannelploamperformancemonitoringhistorydatapart1BME, params...)
129}