blob: 6cd80a083bcf4c556905f2aceee7ac101f744be3 [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// TwdmChannelPhyLodsPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity TWDM channel PHY/LODS performance monitoring history data
27const TwdmChannelPhyLodsPerformanceMonitoringHistoryDataClassID ClassID = ClassID(444)
28
29var twdmchannelphylodsperformancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// TwdmChannelPhyLodsPerformanceMonitoringHistoryData (class ID #444)
32// This ME collects certain PM data associated with the slot/circuit pack, hosting one or more
33// ANI-G MEs, and a specific TWDM channel. Instances of this ME are created and deleted by the OLT.
34//
35// For a complete discussion of generic PM architecture, refer to clause I.4.
36//
37// Relationships
38// An instance of this ME is associated with an instance of TWDM channel ME.
39//
40// Attributes
41// Managed Entity Id
42// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
43// identical ID, this ME is implicitly linked to an instance of the TWDM channel ME. (R,
44// setbycreate) (mandatory) (2-bytes)
45//
46// Interval End Time
47// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
48// (mandatory) (1-byte)
49//
50// Threshold Data 1_2 Id
51// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
52// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
53//
54// Total Received Words Protected By Bit_Interleaved Parity _32 Bip_32
55// Total received words protected by bit-interleaved parity-32 (BIP-32): The count of 4-byte words
56// included in BIP-32 check. This is a product of the number of downstream FS frames received by
57// the size of the downstream FS frame after the FEC parity byte, if any, have been removed. The
58// count applies to the entire downstream data flow, whether or not addressed to that ONT. (R)
59// (mandatory) (8-bytes)
60//
61// Bip_32 Bit Error Count
62// BIP-32 bit error count: Count of the bit errors in the received downstream FS frames as measured
63// using BIP-32. If FEC is supported in the downstream direction, the BIP-32 count applies to the
64// downstream FS frame after the FEC correction has been applied and the FEC parity bytes have been
65// removed. (R) (mandatory) (4-bytes)
66//
67// Corrected Psbd Hec Error Count
68// Corrected PSBd HEC error count: The count of the errors in either CFC or OCS fields of the PSBd
69// block that have been corrected using the HEC technique. (R) (mandatory) (4-bytes)
70//
71// Uncorrectable Psbd Hec Error Count
72// Uncorrectable PSBd HEC error count: The count of the errors in either CFC or OCS fields of the
73// PSBd block that could not be corrected using the HEC technique. (R) (mandatory) (4-bytes)
74//
75// Corrected Downstream Fs Header Hec Error Count
76// Corrected downstream FS header HEC error count: The count of the errors in the downstream FS
77// header that have been corrected using the HEC technique. (R) (mandatory) (4-bytes)
78//
79// Uncorrectable Downstream Fs Header Hec Error Count
80// Uncorrectable downstream FS header HEC error count: The count of the errors in the downstream FS
81// header that could not be corrected using the HEC technique. (R) (mandatory) (4-bytes)
82//
83// Total Number Of Lods Events
84// Total number of LODS events: The count of the state transitions from O5.1/O5.2 to O6, referring
85// to the ONU activation cycle state machine, clause 12 of [ITU-T-G.989.3]. (R) (mandatory)
86// (4-bytes)
87//
88// Lods Events Restored In Operating Twdm Channel
89// LODS events restored in operating TWDM channel: The count of LODS events cleared automatically
90// without retuning. (R) (mandatory) (4-bytes)
91//
92// Lods Events Restored In Protection Twdm Channel
93// LODS events restored in protection TWDM channel: The count of LODS events resolved by retuning
94// to a pre-configured protection TWDM channel. The event is counted against the original operating
95// channel. (R) (mandatory) (4-bytes)
96//
97// Lods Events Restored In Discretionary Twdm Channel
98// LODS events restored in discretionary TWDM channel: The count of LODS events resolved by
99// retuning to a TWDM channel chosen by the ONU, without retuning. Implies that the wavelength
100// channel protection for the operating channel is not active. The event is counted against the
101// original operating channel (R) (mandatory) (4-bytes)
102//
103// Lods Events Resulting In Reactivation
104// LODS events resulting in reactivation: The count of LODS events resolved through ONU
105// reactivation; that is, either TO2 (without WLCP) or TO3-+ TO4 (with WLCP) expires before the
106// downstream channel is reacquired, referring to the ONU activation cycle state machine, clause 12
107// of [ITU-T-G.989.3]. The event is counted against the original operating channel (R) (mandatory)
108// (4-bytes)
109//
110// Lods Events Resulting In Reactivation After Retuning To Protection Twdm Channel
111// LODS events resulting in reactivation after retuning to protection TWDM channel: The count of
112// LODS events resolved through ONU reactivation after attempted protection switching, which turns
113// unsuccessful due to a handshake failure. (R) (mandatory) (4-bytes)
114//
115// Lods Events Resulting In Reactivation After Retuning To Discretionary Twdm Channel
116// LODS events resulting in reactivation after retuning to discretionary TWDM channel: The count of
117// LODS events resolved through ONU reactivation after attempted retuning to a discretionary
118// channel, which turns unsuccessful due to a handshake failure. (R) (mandatory) (4-bytes)
119//
120type TwdmChannelPhyLodsPerformanceMonitoringHistoryData struct {
121 ManagedEntityDefinition
122 Attributes AttributeValueMap
123}
124
125func init() {
126 twdmchannelphylodsperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
127 Name: "TwdmChannelPhyLodsPerformanceMonitoringHistoryData",
128 ClassID: 444,
129 MessageTypes: mapset.NewSetWith(
130 Create,
131 Delete,
132 Get,
133 GetCurrentData,
134 Set,
135 ),
136 AllowedAttributeMask: 0xfffe,
137 AttributeDefinitions: AttributeDefinitionMap{
138 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
139 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
140 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
141 3: Uint64Field("TotalReceivedWordsProtectedByBitInterleavedParity32Bip32", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
142 4: Uint32Field("Bip32BitErrorCount", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
143 5: Uint32Field("CorrectedPsbdHecErrorCount", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
144 6: Uint32Field("UncorrectablePsbdHecErrorCount", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
145 7: Uint32Field("CorrectedDownstreamFsHeaderHecErrorCount", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
146 8: Uint32Field("UncorrectableDownstreamFsHeaderHecErrorCount", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
147 9: Uint32Field("TotalNumberOfLodsEvents", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
148 10: Uint32Field("LodsEventsRestoredInOperatingTwdmChannel", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
149 11: Uint32Field("LodsEventsRestoredInProtectionTwdmChannel", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
150 12: Uint32Field("LodsEventsRestoredInDiscretionaryTwdmChannel", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
151 13: Uint32Field("LodsEventsResultingInReactivation", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
152 14: Uint32Field("LodsEventsResultingInReactivationAfterRetuningToProtectionTwdmChannel", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14),
153 15: Uint32Field("LodsEventsResultingInReactivationAfterRetuningToDiscretionaryTwdmChannel", CounterAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, false, false, 15),
154 },
155 Access: CreatedByOlt,
156 Support: UnknownSupport,
157 }
158}
159
160// NewTwdmChannelPhyLodsPerformanceMonitoringHistoryData (class ID 444) creates the basic
161// Managed Entity definition that is used to validate an ME of this type that
162// is received from or transmitted to the OMCC.
163func NewTwdmChannelPhyLodsPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
164 return NewManagedEntity(*twdmchannelphylodsperformancemonitoringhistorydataBME, params...)
165}