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