Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 3 | * Copyright 2020-present Open Networking Foundation |
| 4 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 5 | * 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 Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 8 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Andrea Campanella | 7167ebb | 2020-02-24 09:56:38 +0100 | [diff] [blame] | 10 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 11 | * 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 | */ |
Chip Boling | 34ebcb6 | 2021-02-02 12:13:58 -0600 | [diff] [blame] | 17 | /* |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 18 | * 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 | |
| 24 | package generated |
| 25 | |
| 26 | import "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 |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 30 | const TwdmChannelPloamPerformanceMonitoringHistoryDataPart1ClassID = ClassID(446) // 0x01be |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 31 | |
| 32 | var twdmchannelploamperformancemonitoringhistorydatapart1BME *ManagedEntityDefinition |
| 33 | |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 34 | // TwdmChannelPloamPerformanceMonitoringHistoryDataPart1 (Class ID: #446 / 0x01be) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 35 | // 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 |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 58 | // 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) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 60 | // |
| 61 | // Interval End Time |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 62 | // This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 63 | // |
| 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 |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 69 | // The counter of received PLOAM messages that remain unparsable due to MIC error. (R) (mandatory) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 70 | // (4-byte) |
| 71 | // |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 72 | // Downstream Ploam Message Count |
| 73 | // The counter of received broadcast and unicast PLOAM messages pertaining to the given ONU. (R) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 74 | // (mandatory) (4-byte) |
| 75 | // |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 76 | // 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 | // |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 82 | // Adjust_Tx_Wavelength Message Count |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 83 | // The counter of received Adjust_Tx_Wavelength PLOAM messages. (R) (mandatory) (4-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 84 | // |
| 85 | // Adjust_Tx_Wavelength Adjustment Amplitude |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 86 | // An estimator of the absolute value of the transmission wavelength adjustment. (R) (mandatory) |
| 87 | // (4-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 88 | // |
| 89 | type TwdmChannelPloamPerformanceMonitoringHistoryDataPart1 struct { |
| 90 | ManagedEntityDefinition |
| 91 | Attributes AttributeValueMap |
| 92 | } |
| 93 | |
| 94 | func init() { |
| 95 | twdmchannelploamperformancemonitoringhistorydatapart1BME = &ManagedEntityDefinition{ |
| 96 | Name: "TwdmChannelPloamPerformanceMonitoringHistoryDataPart1", |
| 97 | ClassID: 446, |
| 98 | MessageTypes: mapset.NewSetWith( |
| 99 | Create, |
| 100 | Delete, |
| 101 | Get, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 102 | Set, |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 103 | GetCurrentData, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 104 | ), |
| 105 | AllowedAttributeMask: 0xff00, |
| 106 | AttributeDefinitions: AttributeDefinitionMap{ |
| 107 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 108 | 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1), |
| 109 | 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 110 | 3: Uint32Field("PloamMicErrors", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3), |
| 111 | 4: Uint32Field("DownstreamPloamMessageCount", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4), |
| 112 | 5: Uint32Field("RangingTimeMessageCount", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5), |
| 113 | 6: Uint32Field("ProtectionControlMessageCount", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6), |
| 114 | 7: Uint32Field("AdjustTxWavelengthMessageCount", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7), |
| 115 | 8: Uint32Field("AdjustTxWavelengthAdjustmentAmplitude", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8), |
| 116 | }, |
| 117 | Access: CreatedByOlt, |
| 118 | Support: UnknownSupport, |
Chip Boling | 34ebcb6 | 2021-02-02 12:13:58 -0600 | [diff] [blame] | 119 | Alarms: AlarmMap{ |
| 120 | 0: "PLOAM MIC errors", |
| 121 | }, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 122 | } |
| 123 | } |
| 124 | |
| 125 | // NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart1 (class ID 446) creates the basic |
| 126 | // Managed Entity definition that is used to validate an ME of this type that |
| 127 | // is received from or transmitted to the OMCC. |
| 128 | func NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart1(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 129 | return NewManagedEntity(*twdmchannelploamperformancemonitoringhistorydatapart1BME, params...) |
| 130 | } |