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 | // TwdmChannelPloamPerformanceMonitoringHistoryDataPart3ClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity TWDM channel PLOAM performance monitoring history data part 3 |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 30 | const TwdmChannelPloamPerformanceMonitoringHistoryDataPart3ClassID = ClassID(448) // 0x01c0 |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 31 | |
| 32 | var twdmchannelploamperformancemonitoringhistorydatapart3BME *ManagedEntityDefinition |
| 33 | |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 34 | // TwdmChannelPloamPerformanceMonitoringHistoryDataPart3 (Class ID: #448 / 0x01c0) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 35 | // This ME collects remaining 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 | // This ME contains the counters related to transmitted upstream PLOAM messages. All these counters |
| 40 | // are characterized as optional in clause 14 of [ITU-T- G.989.3]. |
| 41 | // |
| 42 | // For a complete discussion of generic PM architecture, refer to clause I.4. |
| 43 | // |
| 44 | // Relationships |
| 45 | // An instance of this ME is associated with an instance of TWDM channel ME. |
| 46 | // |
| 47 | // Attributes |
| 48 | // Managed Entity Id |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 49 | // This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is |
| 50 | // 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] | 51 | // |
| 52 | // Interval End Time |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 53 | // 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] | 54 | // |
| 55 | // Threshold Data 1_2 Id |
| 56 | // Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs |
| 57 | // that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes) |
| 58 | // |
| 59 | // Upstream Ploam Message Count |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 60 | // The aggregate counter of PLOAM messages, other than AK PLOAM MT, transmitted by the given ONU. |
| 61 | // (R) (mandatory) (4-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 62 | // |
| 63 | // Serial_Number_Onu In_Band Message Count |
| 64 | // Serial_Number_ONU (in-band) message count: The counter of transmitted in-band Serial_Number_ONU |
| 65 | // PLOAM messages. (R) (mandatory) (4-byte) |
| 66 | // |
| 67 | // Serial_Number_Onu Amcc Message Count |
| 68 | // Serial_Number_ONU (AMCC) message count: The counter of transmitted auxiliary management and |
| 69 | // control channel (AMCC) Serial_Number_ONU PLOAM messages. (R) (mandatory) (4-byte) |
| 70 | // |
| 71 | // Registration Message Count |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 72 | // The counter of transmitted Registration PLOAM messages. (R) (mandatory) (4-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 73 | // |
| 74 | // Key_Report Message Count |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 75 | // The counter of transmitted Key_Report PLOAM messages. (R) (mandatory) (4-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 76 | // |
| 77 | // Acknowledgement Message Count |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 78 | // The counter of transmitted Registration PLOAM messages. (R) (mandatory) (4-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 79 | // |
| 80 | // Sleep_Request Message Count |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 81 | // The counter of transmitted Sleep_Request PLOAM messages. (R) (mandatory) (4-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 82 | // |
| 83 | // Tuning_Response Ack_Nack Message Count |
| 84 | // Tuning_Response (ACK/NACK) message count: The counter of transmitted Tuning_Response PLOAM |
| 85 | // messages with ACK/NACK operation code. (R) (mandatory) (4-byte) |
| 86 | // |
| 87 | // Tuning_Response Complete_U_Rollback Message Count |
| 88 | // Tuning_Response (Complete_u/Rollback) message count: The counter of transmitted Tuning_Response |
| 89 | // PLOAM messages with Complete_u/Rollback operation code. (R) (mandatory) (4-byte) |
| 90 | // |
| 91 | // Power_Consumption_Report Message Count |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 92 | // The counter of transmitted Power_Consumption_Report PLOAM messages. (R) (mandatory) (4-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 93 | // |
| 94 | // Change_Power_Level Parameter Error Count |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 95 | // The counter of transmitted Acknowledgement PLOAM messages with Parameter Error completion code |
| 96 | // in response to Change_Power_Level PLOAM message. (R) (mandatory) (4-byte) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 97 | // |
| 98 | type TwdmChannelPloamPerformanceMonitoringHistoryDataPart3 struct { |
| 99 | ManagedEntityDefinition |
| 100 | Attributes AttributeValueMap |
| 101 | } |
| 102 | |
| 103 | func init() { |
| 104 | twdmchannelploamperformancemonitoringhistorydatapart3BME = &ManagedEntityDefinition{ |
| 105 | Name: "TwdmChannelPloamPerformanceMonitoringHistoryDataPart3", |
| 106 | ClassID: 448, |
| 107 | MessageTypes: mapset.NewSetWith( |
| 108 | Create, |
| 109 | Delete, |
| 110 | Get, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 111 | Set, |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 112 | GetCurrentData, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 113 | ), |
| 114 | AllowedAttributeMask: 0xfff8, |
| 115 | AttributeDefinitions: AttributeDefinitionMap{ |
| 116 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 117 | 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1), |
| 118 | 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 119 | 3: Uint32Field("UpstreamPloamMessageCount", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3), |
| 120 | 4: Uint32Field("SerialNumberOnuInBandMessageCount", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4), |
| 121 | 5: Uint32Field("SerialNumberOnuAmccMessageCount", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5), |
| 122 | 6: Uint32Field("RegistrationMessageCount", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6), |
| 123 | 7: Uint32Field("KeyReportMessageCount", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7), |
| 124 | 8: Uint32Field("AcknowledgementMessageCount", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8), |
| 125 | 9: Uint32Field("SleepRequestMessageCount", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9), |
| 126 | 10: Uint32Field("TuningResponseAckNackMessageCount", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10), |
| 127 | 11: Uint32Field("TuningResponseCompleteURollbackMessageCount", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11), |
| 128 | 12: Uint32Field("PowerConsumptionReportMessageCount", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12), |
| 129 | 13: Uint32Field("ChangePowerLevelParameterErrorCount", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13), |
| 130 | }, |
| 131 | Access: CreatedByOlt, |
| 132 | Support: UnknownSupport, |
Chip Boling | 34ebcb6 | 2021-02-02 12:13:58 -0600 | [diff] [blame] | 133 | Alarms: AlarmMap{ |
| 134 | 0: "Change_Power_Level parameter error count", |
| 135 | }, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 136 | } |
| 137 | } |
| 138 | |
| 139 | // NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart3 (class ID 448) creates the basic |
| 140 | // Managed Entity definition that is used to validate an ME of this type that |
| 141 | // is received from or transmitted to the OMCC. |
| 142 | func NewTwdmChannelPloamPerformanceMonitoringHistoryDataPart3(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 143 | return NewManagedEntity(*twdmchannelploamperformancemonitoringhistorydatapart3BME, params...) |
| 144 | } |