Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net) |
| 3 | * Copyright 2020-present Open Networking Foundation |
| 4 | |
| 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 |
| 8 | |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 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 | */ |
| 17 | /* |
| 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 | // TwdmChannelTuningPerformanceMonitoringHistoryDataPart2ClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity TWDM channel tuning performance monitoring history data part 2 |
Andrea Campanella | 10426e2 | 2021-10-15 17:58:04 +0200 | [diff] [blame] | 30 | const TwdmChannelTuningPerformanceMonitoringHistoryDataPart2ClassID = ClassID(450) // 0x01c2 |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 31 | |
| 32 | var twdmchanneltuningperformancemonitoringhistorydatapart2BME *ManagedEntityDefinition |
| 33 | |
Andrea Campanella | 10426e2 | 2021-10-15 17:58:04 +0200 | [diff] [blame] | 34 | // TwdmChannelTuningPerformanceMonitoringHistoryDataPart2 (Class ID: #450 / 0x01c2) |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 35 | // This ME collects additional tuning-control-related PM data associated with the slot/circuit |
| 36 | // pack, hosting one or more ANI-G MEs, for a specific TWDM channel. Instances of this ME are |
| 37 | // created and deleted by the OLT. |
| 38 | // |
| 39 | // The relevant events this ME is concerned with are counted towards the PM statistics associated |
| 40 | // with the source TWDM channel. This ME contains the counters characterized as optional in clause |
| 41 | // 14 of [ITU-T- G.989.3]. |
| 42 | // |
| 43 | // For a complete discussion of generic PM architecture, refer to clause I.4. |
| 44 | // |
| 45 | // Relationships |
| 46 | // An instance of this ME is associated with an instance of TWDM channel ME. |
| 47 | // |
| 48 | // Attributes |
| 49 | // Managed Entity Id |
Andrea Campanella | 10426e2 | 2021-10-15 17:58:04 +0200 | [diff] [blame] | 50 | // This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is |
| 51 | // implicitly linked to an instance of the TWDM channel ME. (R, setbycreate) (mandatory) (2-bytes) |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 52 | // |
| 53 | // Interval End Time |
Andrea Campanella | 10426e2 | 2021-10-15 17:58:04 +0200 | [diff] [blame] | 54 | // This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte) |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 55 | // |
| 56 | // Threshold Data 1_2 Id |
| 57 | // Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs |
| 58 | // that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes) |
| 59 | // |
| 60 | // Tuning Control Requests Rejected_Ds_Albl |
| 61 | // Tuning control requests rejected/DS_ALBL: The counter of transmitted Tuning_Response PLOAM |
| 62 | // messages with NACK operation code and DS_ALBL response code, indicating downstream |
| 63 | // administrative label inconsistency. (R) (mandatory) (4-byte) |
| 64 | // |
| 65 | // Tuning Control Requests Rejected_Ds_Void |
| 66 | // Tuning control requests rejected/DS_VOID: The counter of transmitted Tuning_Response PLOAM |
| 67 | // messages with NACK operation code and DS_VOID response code, indicating that the target |
| 68 | // downstream wavelength channel descriptor is void. (R) (mandatory) (4-byte) |
| 69 | // |
| 70 | // Tuning Control Requests Rejected_Ds_Part |
| 71 | // Tuning control requests rejected/DS_PART: The counter of transmitted Tuning_Response PLOAM |
| 72 | // messages with NACK operation code and DS_PART response code, indicating that tuning request |
| 73 | // involves channel partition violation. (R) (mandatory) (4-byte) |
| 74 | // |
| 75 | // Tuning Control Requests Rejected_Ds_Tunr |
| 76 | // Tuning control requests rejected/DS_TUNR: The counter of transmitted Tuning_Response PLOAM |
| 77 | // messages with NACK operation code and DS_TUNR response code, indicating that the target DS |
| 78 | // wavelength channel is out of receiver tuning range. (R) (mandatory) (4-byte) |
| 79 | // |
| 80 | // Tuning Control Requests Rejected_Ds_Lnrt |
| 81 | // Tuning control requests rejected/DS_LNRT: The counter of transmitted Tuning_Response PLOAM |
| 82 | // messages with NACK operation code and DS_LNRT response code, indicating downstream line rate |
| 83 | // inconsistency in the target channel. (R) (mandatory) (4-byte) |
| 84 | // |
| 85 | // Tuning Control Requests Rejected_Ds_Lncd |
| 86 | // Tuning control requests rejected/DS_LNCD: The counter of transmitted Tuning_Response PLOAM |
| 87 | // messages with NACK operation code and DS_LNCD response code, indicating downstream line code |
| 88 | // inconsistency in the target channel. (R) (mandatory) (4-byte) |
| 89 | // |
| 90 | // Tuning Control Requests Rejected_Us_Albl |
| 91 | // Tuning control requests rejected/US_ALBL: The counter of transmitted Tuning_Response PLOAM |
| 92 | // messages with NACK operation code and US_ALBL response code, indicating upstream administrative |
| 93 | // label inconsistency. (R) (mandatory) (4-byte) |
| 94 | // |
| 95 | // Tuning Control Requests Rejected_Us_Void |
| 96 | // Tuning control requests rejected/US_VOID: The counter of transmitted Tuning_Response PLOAM |
| 97 | // messages with NACK operation code and US_VOID response code, indicating that the target upstream |
| 98 | // wavelength channel descriptor is void. (R) (mandatory) (4-byte) |
| 99 | // |
| 100 | // Tuning Control Requests Rejected_Us_Tunr |
| 101 | // Tuning control requests rejected/US_TUNR: The counter of transmitted Tuning_Response PLOAM |
| 102 | // messages with NACK operation code and US_TUNR response code, indicating that the target US |
| 103 | // wavelength channel is out of transmitter tuning range. (R) (mandatory) (4-byte) |
| 104 | // |
| 105 | // Tuning Control Requests Rejected_Us_Clbr |
| 106 | // Tuning control requests rejected/US_CLBR: The counter of transmitted Tuning_Response PLOAM |
| 107 | // messages with NACK operation code and US_CLBR response code, indicating that the transmitter has |
| 108 | // insufficient calibration accuracy in the target US wavelength channel. (R) (mandatory) (4-byte) |
| 109 | // |
| 110 | // Tuning Control Requests Rejected_Us_Lktp |
| 111 | // Tuning control requests rejected/US_LKTP: The counter of transmitted Tuning_Response PLOAM |
| 112 | // messages with NACK operation code and US_LKTP response code, indicating upstream optical link |
| 113 | // type inconsistency. (R) (mandatory) (4-byte) |
| 114 | // |
| 115 | // Tuning Control Requests Rejected_Us_Lnrt |
| 116 | // Tuning control requests rejected/US_LNRT: The counter of transmitted Tuning_Response PLOAM |
| 117 | // messages with NACK operation code and US_LNRT response code, indicating upstream line rate |
| 118 | // inconsistency in the target channel. (R) (mandatory) (4-byte) |
| 119 | // |
| 120 | // Tuning Control Requests Rejected_Us_Lncd |
| 121 | // Tuning control requests rejected/US_LNCD: The counter of transmitted Tuning_Response PLOAM |
| 122 | // messages with NACK operation code and US_LNCD response code, indicating upstream line code |
| 123 | // inconsistency in the target channel. (R) (mandatory) (4-byte) |
| 124 | // |
| 125 | type TwdmChannelTuningPerformanceMonitoringHistoryDataPart2 struct { |
| 126 | ManagedEntityDefinition |
| 127 | Attributes AttributeValueMap |
| 128 | } |
| 129 | |
| 130 | func init() { |
| 131 | twdmchanneltuningperformancemonitoringhistorydatapart2BME = &ManagedEntityDefinition{ |
| 132 | Name: "TwdmChannelTuningPerformanceMonitoringHistoryDataPart2", |
| 133 | ClassID: 450, |
| 134 | MessageTypes: mapset.NewSetWith( |
| 135 | Create, |
| 136 | Delete, |
| 137 | Get, |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 138 | Set, |
Andrea Campanella | 10426e2 | 2021-10-15 17:58:04 +0200 | [diff] [blame] | 139 | GetCurrentData, |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 140 | ), |
| 141 | AllowedAttributeMask: 0xfffe, |
| 142 | AttributeDefinitions: AttributeDefinitionMap{ |
| 143 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 144 | 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1), |
| 145 | 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 146 | 3: Uint32Field("TuningControlRequestsRejectedDsAlbl", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3), |
| 147 | 4: Uint32Field("TuningControlRequestsRejectedDsVoid", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4), |
| 148 | 5: Uint32Field("TuningControlRequestsRejectedDsPart", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5), |
| 149 | 6: Uint32Field("TuningControlRequestsRejectedDsTunr", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6), |
| 150 | 7: Uint32Field("TuningControlRequestsRejectedDsLnrt", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7), |
| 151 | 8: Uint32Field("TuningControlRequestsRejectedDsLncd", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8), |
| 152 | 9: Uint32Field("TuningControlRequestsRejectedUsAlbl", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9), |
| 153 | 10: Uint32Field("TuningControlRequestsRejectedUsVoid", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10), |
| 154 | 11: Uint32Field("TuningControlRequestsRejectedUsTunr", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11), |
| 155 | 12: Uint32Field("TuningControlRequestsRejectedUsClbr", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12), |
| 156 | 13: Uint32Field("TuningControlRequestsRejectedUsLktp", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13), |
| 157 | 14: Uint32Field("TuningControlRequestsRejectedUsLnrt", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14), |
| 158 | 15: Uint32Field("TuningControlRequestsRejectedUsLncd", CounterAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, false, false, 15), |
| 159 | }, |
| 160 | Access: CreatedByOlt, |
| 161 | Support: UnknownSupport, |
| 162 | Alarms: AlarmMap{ |
| 163 | 0: "Tuning control requests rejected/DS_ALBL", |
| 164 | 1: "Tuning control requests rejected/DS_VOID", |
| 165 | 2: "Tuning control requests rejected/DS_PART", |
| 166 | 3: "Tuning control requests rejected/DS_TUNR", |
| 167 | 4: "Tuning control requests rejected/DS_LNRT", |
| 168 | 5: "Tuning control requests rejected/DS_LNCD", |
| 169 | 6: "Tuning control requests rejected/US_ALBL", |
| 170 | 7: "Tuning control requests rejected/US_VOID", |
| 171 | 8: "Tuning control requests rejected/US_TUNR", |
| 172 | 9: "Tuning control requests rejected/US_CLBR", |
| 173 | 10: "Tuning control requests rejected/US_LKTP", |
| 174 | 11: "Tuning control requests rejected/US_LNRT", |
| 175 | 12: "Tuning control requests rejected/US_LNCD", |
| 176 | }, |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | // NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart2 (class ID 450) creates the basic |
| 181 | // Managed Entity definition that is used to validate an ME of this type that |
| 182 | // is received from or transmitted to the OMCC. |
| 183 | func NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 184 | return NewManagedEntity(*twdmchanneltuningperformancemonitoringhistorydatapart2BME, params...) |
| 185 | } |