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 | // XtuDataGatheringConfigurationClassID is the 16-bit ID for the OMCI |
| 26 | // Managed entity xTU data gathering configuration |
| 27 | const XtuDataGatheringConfigurationClassID ClassID = ClassID(413) |
| 28 | |
| 29 | var xtudatagatheringconfigurationBME *ManagedEntityDefinition |
| 30 | |
| 31 | // XtuDataGatheringConfiguration (class ID #413) |
| 32 | // This ME defines configurations specific to data gathering. |
| 33 | // |
| 34 | // An instance of this ME is created and deleted by the OLT. |
| 35 | // |
| 36 | // Relationships |
| 37 | // An instance of this ME may be associated with zero or more instances of the PPTP xDSL UNI part |
| 38 | // 1. |
| 39 | // |
| 40 | // Attributes |
| 41 | // Managed Entity Id |
| 42 | // Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an |
| 43 | // identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1 ME. |
| 44 | // (R,-set-by-create) (mandatory) (2 bytes) |
| 45 | // |
| 46 | // Logging Depth Event Percentage Per Event _ Vtu_O Logging_Depth_Event_Percentage_Oi Table |
| 47 | // Logging depth event percentage per event - VTU-O (LOGGING_DEPTH_EVENT_PERCENTAGE_Oi) table: This |
| 48 | // parameter is the percentage of the data gathering event buffer assigned to event type i at the |
| 49 | // VTU-O. See clause 7.3.6.1 of [ITU-T G.997.1]. Each element in the table consists of 2-bytes, |
| 50 | // where the first byte is event type i, and the second byte is the percentage of event type i |
| 51 | // defined as the integer value multiplied by 1%. (R, W) (optional) (2- N-bytes for N event types) |
| 52 | // |
| 53 | // Logging Depth Event Percentage Per Event _ Vtu_R Logging_Depth_Event_Percentage_Ri Table |
| 54 | // Logging depth event percentage per event - VTU-R (LOGGING_DEPTH_EVENT_PERCENTAGE_Ri) table: This |
| 55 | // parameter is the percentage of the data gathering event buffer assigned to event type i at the |
| 56 | // VTU-R. See clause 7.3.6.2 of [ITU-T G.997.1]. Each element in the table consists of 2-bytes, |
| 57 | // where the first byte is event type i, and the second byte is the percentage of event type i |
| 58 | // defined as the integer value multiplied by 1%. (R, W) (optional) (2- N-bytes for N event types) |
| 59 | // |
| 60 | // Logging Depth For Vtu_O Reporting _ Vtu_R Logging_Depth_Reporting_O |
| 61 | // Logging depth for VTU-O reporting - VTU-R (LOGGING_DEPTH_REPORTING_O): This parameter is the |
| 62 | // logging depth that is requested for reporting the VTU-O event trace buffer in the COMIB, in |
| 63 | // number of 6-byte data gathering records. See clause 7.3.6.3 of [ITU-T G.997.1]. (R, W) |
| 64 | // (optional) (2-bytes) |
| 65 | // |
| 66 | // Logging Depth For Vtu_R Reporting _ Vtu_R Logging_Depth_Reporting_R |
| 67 | // Logging depth for VTU-R reporting - VTU-R (LOGGING_DEPTH_REPORTING_R): This parameter is the |
| 68 | // logging depth that is requested for reporting the VTU-R event trace buffer over the embedded |
| 69 | // operations channel (eoc), in number of 6-byte data gathering records. See clause 7.3.6.4 of |
| 70 | // [ITU-T G.997.1]. (R, W) (optional) (2-bytes) |
| 71 | // |
| 72 | // Logging Data Report Newer Events First _ Vtu_R Logging_Report_Newer_First |
| 73 | // Logging data report newer events first - VTU-R (LOGGING_REPORT_NEWER_FIRST): This parameter |
| 74 | // determines whether the VTU-R to reports newer events first or older events first. See clause |
| 75 | // 7.3.6.4 of [ITU-T G.997.1]. False is mapped to 0, true is mapped to 1. (R, W) (optional) |
| 76 | // (1-byte) |
| 77 | // |
| 78 | type XtuDataGatheringConfiguration struct { |
| 79 | ManagedEntityDefinition |
| 80 | Attributes AttributeValueMap |
| 81 | } |
| 82 | |
| 83 | func init() { |
| 84 | xtudatagatheringconfigurationBME = &ManagedEntityDefinition{ |
| 85 | Name: "XtuDataGatheringConfiguration", |
| 86 | ClassID: 413, |
| 87 | MessageTypes: mapset.NewSetWith( |
| 88 | Create, |
| 89 | Delete, |
| 90 | Get, |
| 91 | GetNext, |
| 92 | Set, |
| 93 | ), |
| 94 | AllowedAttributeMask: 0xf800, |
| 95 | AttributeDefinitions: AttributeDefinitionMap{ |
| 96 | 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 97 | 1: TableField("LoggingDepthEventPercentagePerEventVtuOLoggingDepthEventPercentageOiTable", TableAttributeType, 0x8000, TableInfo{nil, 2}, mapset.NewSetWith(Read, Write), false, true, false, 1), |
| 98 | 2: TableField("LoggingDepthEventPercentagePerEventVtuRLoggingDepthEventPercentageRiTable", TableAttributeType, 0x4000, TableInfo{nil, 2}, mapset.NewSetWith(Read, Write), false, true, false, 2), |
| 99 | 3: Uint16Field("LoggingDepthForVtuOReportingVtuRLoggingDepthReportingO", UnsignedIntegerAttributeType, 0x2000, 0, mapset.NewSetWith(Read, Write), false, true, false, 3), |
| 100 | 4: Uint16Field("LoggingDepthForVtuRReportingVtuRLoggingDepthReportingR", UnsignedIntegerAttributeType, 0x1000, 0, mapset.NewSetWith(Read, Write), false, true, false, 4), |
| 101 | 5: ByteField("LoggingDataReportNewerEventsFirstVtuRLoggingReportNewerFirst", UnsignedIntegerAttributeType, 0x0800, 0, mapset.NewSetWith(Read, Write), false, true, false, 5), |
| 102 | }, |
| 103 | Access: CreatedByOlt, |
| 104 | Support: UnknownSupport, |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | // NewXtuDataGatheringConfiguration (class ID 413) creates the basic |
| 109 | // Managed Entity definition that is used to validate an ME of this type that |
| 110 | // is received from or transmitted to the OMCC. |
| 111 | func NewXtuDataGatheringConfiguration(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 112 | return NewManagedEntity(*xtudatagatheringconfigurationBME, params...) |
| 113 | } |