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 | // TwdmChannelTuningPerformanceMonitoringHistoryDataPart3ClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity TWDM channel tuning performance monitoring history data part 3 |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 30 | const TwdmChannelTuningPerformanceMonitoringHistoryDataPart3ClassID = ClassID(451) // 0x01c3 |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 31 | |
| 32 | var twdmchanneltuningperformancemonitoringhistorydatapart3BME *ManagedEntityDefinition |
| 33 | |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 34 | // TwdmChannelTuningPerformanceMonitoringHistoryDataPart3 (Class ID: #451 / 0x01c3) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 35 | // This ME collects remaining tuning-control-related PM data associated with the slot/circuit pack, |
| 36 | // hosting one or more ANI-G MEs, for a specific TWDM channel. Instances of this ME are created and |
| 37 | // 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 |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [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) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 52 | // |
| 53 | // Interval End Time |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 54 | // 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] | 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 Rollback_Ds_Albl |
| 61 | // Tuning control requests Rollback/DS_ALBL: The counter of controlled tuning attempts that failed |
| 62 | // due to downstream administrative label inconsistency, as indicated by the Tuning_Response PLOAM |
| 63 | // message with Rollback operation code and DS_ALBL response code. (R) (mandatory) (4-byte) |
| 64 | // |
| 65 | // Tuning Control Requests Rollback_Ds_Lktp |
| 66 | // Tuning control requests Rollback/DS_LKTP: The counter of controlled tuning attempts that failed |
| 67 | // due to downstream optical link type inconsistency, as indicated by the Tuning_Response PLOAM |
| 68 | // message with Rollback operation code and DS_LKTP response code. (R) (mandatory) (4-byte) |
| 69 | // |
| 70 | // Tuning Control Requests Rollback_Us_Albl |
| 71 | // Tuning control requests Rollback/US_ALBL: The counter of controlled tuning attempts that failed |
| 72 | // due to upstream administrative label violation, as indicated by the Tuning_Response PLOAM |
| 73 | // message with Rollback operation code and US_ALBL response code. (R) (mandatory) (4-byte) |
| 74 | // |
| 75 | // Tuning Control Requests Rollback_Us_Void |
| 76 | // Tuning control requests Rollback/US_VOID: The counter of controlled tuning attempts that failed |
| 77 | // due to the target upstream wavelength channel descriptor being void, as indicated by the |
| 78 | // Tuning_Response PLOAM message with Rollback operation code and US_VOID response code. (R) |
| 79 | // (mandatory) (4-byte) |
| 80 | // |
| 81 | // Tuning Control Requests Rollback_Us_Tunr |
| 82 | // Tuning control requests Rollback/US_TUNR: The counter of controlled tuning attempts that failed |
| 83 | // due to the transmitter tuning range violation, as indicated by the Tuning_Response PLOAM message |
| 84 | // with Rollback operation code and US_TUNR response code. (R) (mandatory) (4-byte) |
| 85 | // |
| 86 | // Tuning Control Requests Rollback_Us_Lktp |
| 87 | // Tuning control requests Rollback/US_LKTP: The counter of controlled tuning attempts that failed |
| 88 | // due to the upstream optical link type violation, as indicated by the Tuning_Response PLOAM |
| 89 | // message with Rollback operation code and US_LKTP response code. (R) (mandatory) (4-byte) |
| 90 | // |
| 91 | // Tuning Control Requests Rollback_Us_Lnrt |
| 92 | // Tuning control requests Rollback/US_LNRT: The counter of controlled tuning attempts that failed |
| 93 | // due to the upstream line rate violation, as indicated by the Tuning_Response PLOAM message with |
| 94 | // Rollback operation code and US_LNRT response code. (R) (mandatory) (4-byte) |
| 95 | // |
| 96 | // Tuning Control Requests Rollback_Us_Lncd |
| 97 | // Tuning control requests Rollback/US_LNCD: The counter of controlled tuning attempts that failed |
| 98 | // due to the upstream line code violation, as indicated by the Tuning_Response PLOAM message with |
| 99 | // Rollback operation code and US_LNCD response code. (R) (mandatory) (4-byte) |
| 100 | // |
| 101 | type TwdmChannelTuningPerformanceMonitoringHistoryDataPart3 struct { |
| 102 | ManagedEntityDefinition |
| 103 | Attributes AttributeValueMap |
| 104 | } |
| 105 | |
| 106 | func init() { |
| 107 | twdmchanneltuningperformancemonitoringhistorydatapart3BME = &ManagedEntityDefinition{ |
| 108 | Name: "TwdmChannelTuningPerformanceMonitoringHistoryDataPart3", |
| 109 | ClassID: 451, |
| 110 | MessageTypes: mapset.NewSetWith( |
| 111 | Create, |
| 112 | Delete, |
| 113 | Get, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 114 | Set, |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 115 | GetCurrentData, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 116 | ), |
| 117 | AllowedAttributeMask: 0xffc0, |
| 118 | AttributeDefinitions: AttributeDefinitionMap{ |
| 119 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 120 | 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1), |
| 121 | 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 122 | 3: Uint32Field("TuningControlRequestsRollbackDsAlbl", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3), |
| 123 | 4: Uint32Field("TuningControlRequestsRollbackDsLktp", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4), |
| 124 | 5: Uint32Field("TuningControlRequestsRollbackUsAlbl", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5), |
| 125 | 6: Uint32Field("TuningControlRequestsRollbackUsVoid", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6), |
| 126 | 7: Uint32Field("TuningControlRequestsRollbackUsTunr", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7), |
| 127 | 8: Uint32Field("TuningControlRequestsRollbackUsLktp", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8), |
| 128 | 9: Uint32Field("TuningControlRequestsRollbackUsLnrt", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9), |
| 129 | 10: Uint32Field("TuningControlRequestsRollbackUsLncd", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10), |
| 130 | }, |
| 131 | Access: CreatedByOlt, |
| 132 | Support: UnknownSupport, |
Chip Boling | 34ebcb6 | 2021-02-02 12:13:58 -0600 | [diff] [blame] | 133 | Alarms: AlarmMap{ |
| 134 | 0: "Tuning control requests Rollback/DS_ALBL", |
| 135 | 1: "Tuning control requests Rollback /DS_LKTP", |
| 136 | 2: "Tuning control requests Rollback/US_ALBL", |
| 137 | 3: "Tuning control requests Rollback /US_VOID", |
| 138 | 4: "Tuning control requests Rollback/US_TUNR", |
| 139 | 5: "Tuning control requests Rollback /US_LKTP", |
| 140 | 6: "Tuning control requests Rollback/US_LNRT", |
| 141 | 7: "Tuning control requests Rollback /US_LNCD", |
| 142 | }, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 143 | } |
| 144 | } |
| 145 | |
| 146 | // NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart3 (class ID 451) creates the basic |
| 147 | // Managed Entity definition that is used to validate an ME of this type that |
| 148 | // is received from or transmitted to the OMCC. |
| 149 | func NewTwdmChannelTuningPerformanceMonitoringHistoryDataPart3(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 150 | return NewManagedEntity(*twdmchanneltuningperformancemonitoringhistorydatapart3BME, params...) |
| 151 | } |