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