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