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 |
Chip Boling | 8cdd639 | 2022-01-27 08:43:37 -0600 | [diff] [blame] | 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 |
Chip Boling | 8cdd639 | 2022-01-27 08:43:37 -0600 | [diff] [blame] | 8 | * |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
Chip Boling | 8cdd639 | 2022-01-27 08:43:37 -0600 | [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 | // XdslImpulseNoiseMonitorPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI |
| 29 | // Managed entity xDSL impulse noise monitor performance monitoring history data |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 30 | const XdslImpulseNoiseMonitorPerformanceMonitoringHistoryDataClassID = ClassID(324) // 0x0144 |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 31 | |
| 32 | var xdslimpulsenoisemonitorperformancemonitoringhistorydataBME *ManagedEntityDefinition |
| 33 | |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 34 | // XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData (Class ID: #324 / 0x0144) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 35 | // This ME collects PM data from the impulse noise monitor function at both near and far ends. |
| 36 | // Instances of this ME are created and deleted by the OLT. Note that, unlike most xDSL PM, [ITU-T |
| 37 | // G.997.1] only requires current and previous 15-min interval storage; a longer view of this PM is |
| 38 | // not expected at 15-min granularity. |
| 39 | // |
| 40 | // For a complete discussion of generic PM architecture, refer to clause I.4. |
| 41 | // |
| 42 | // Relationships |
| 43 | // An instance of this ME may be associated with an xDSL UNI. This ME is meaningful only for ITUT |
| 44 | // G.993.2 VDSL2, [ITUT G.992.3] and [ITUT-G.992.5]. |
| 45 | // |
| 46 | // Attributes |
| 47 | // Managed Entity Id |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 48 | // This attribute uniquely identifies each instance of this ME. The ME ID is identical to that of |
| 49 | // this ME's parent PPTP xDSL UNI part 1. (R, setbycreate) (mandatory) (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 50 | // |
| 51 | // Interval End Time |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 52 | // 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] | 53 | // |
| 54 | // Threshold Data 1_2 Id |
| 55 | // Threshold data 1/2 ID: No thresholds are defined for this ME. For uniformity with other PM, the |
| 56 | // attribute is retained and shown as mandatory, but it should be set to a null pointer. (R,-W, |
| 57 | // setbycreate) (mandatory) (2-bytes) |
| 58 | // |
| 59 | // Inm Inpeq Histogram Table |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 60 | // INMINPEQ1..17-L is a count of the near-end INMAINPEQi anomalies occurring on the line during the |
| 61 | // accumulation period. This parameter is subject to inhibiting - see clause 7.2.7.13 of |
| 62 | // [ITUT-G.997.1]. (R) (optional) (2-bytes * 17 entries-= 34-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 63 | // |
| 64 | // Inm Total Measurement |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 65 | // INMME-L is a count of the near-end INMAME anomalies occurring on the line during the |
| 66 | // accumulation period. This parameter is subject to inhibiting - see clause 7.2.7.13 of [ITUT |
| 67 | // G.997.1]. (R) (optional) (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 68 | // |
| 69 | // Inm Iat Histogram |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 70 | // INMIAT0..7-L is a count of the near-end INMAIATi anomalies occurring on the line during the |
| 71 | // accumulation period. This parameter is subject to inhibiting - see clause 7.2.7.13 of [ITUT |
| 72 | // G.997.1]. (R) (optional) (2-bytes-* 8 entries-= 16-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 73 | // |
| 74 | // Inm Inpeq Histogram Lfe Table |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 75 | // INMINPEQ1..17-LFE is a count of the far-end INMAINPEQi anomalies occurring on the line during |
| 76 | // the accumulation period. This parameter is subject to inhibiting - see clause 7.2.7.13 of |
| 77 | // [ITUT-G.997.1]. (R) (optional) (2-bytes * 17 entries-= 34-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 78 | // |
| 79 | // Inm Total Measurement Lfe |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 80 | // INMME-LFE is a count of the far-end INMAME anomalies occurring on the line during the |
| 81 | // accumulation period. This parameter is subject to inhibiting - see clause 7.2.7.13 of [ITUT |
| 82 | // G.997.1]. (R) (optional) (2-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 83 | // |
| 84 | // Inm Iat Histogram Lfe |
Chip Boling | 610117d | 2021-09-09 11:24:34 -0500 | [diff] [blame] | 85 | // INMIAT0..7-LFE is a count of the far-end INMAIATi anomalies occurring on the line during the |
| 86 | // accumulation period. This parameter is subject to inhibiting - see clause 7.2.7.13 of [ITUT |
| 87 | // G.997.1]. (R) (optional) (2-bytes-* 8 entries-= 16-bytes) |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 88 | // |
| 89 | type XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData struct { |
| 90 | ManagedEntityDefinition |
| 91 | Attributes AttributeValueMap |
| 92 | } |
| 93 | |
Chip Boling | 8cdd639 | 2022-01-27 08:43:37 -0600 | [diff] [blame] | 94 | // Attribute name constants |
| 95 | |
| 96 | const XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData_IntervalEndTime = "IntervalEndTime" |
| 97 | const XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData_ThresholdData12Id = "ThresholdData12Id" |
| 98 | const XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData_InmInpeqHistogramTable = "InmInpeqHistogramTable" |
| 99 | const XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData_InmTotalMeasurement = "InmTotalMeasurement" |
| 100 | const XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData_InmIatHistogram = "InmIatHistogram" |
| 101 | const XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData_InmInpeqHistogramLfeTable = "InmInpeqHistogramLfeTable" |
| 102 | const XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData_InmTotalMeasurementLfe = "InmTotalMeasurementLfe" |
| 103 | const XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData_InmIatHistogramLfe = "InmIatHistogramLfe" |
| 104 | |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 105 | func init() { |
| 106 | xdslimpulsenoisemonitorperformancemonitoringhistorydataBME = &ManagedEntityDefinition{ |
| 107 | Name: "XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData", |
Chip Boling | 8cdd639 | 2022-01-27 08:43:37 -0600 | [diff] [blame] | 108 | ClassID: XdslImpulseNoiseMonitorPerformanceMonitoringHistoryDataClassID, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 109 | MessageTypes: mapset.NewSetWith( |
| 110 | Create, |
| 111 | Delete, |
| 112 | Get, |
| 113 | GetNext, |
| 114 | Set, |
Chip Boling | 2d51f05 | 2021-02-09 09:04:15 -0600 | [diff] [blame] | 115 | GetCurrentData, |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 116 | ), |
| 117 | AllowedAttributeMask: 0xff00, |
| 118 | AttributeDefinitions: AttributeDefinitionMap{ |
Chip Boling | 8cdd639 | 2022-01-27 08:43:37 -0600 | [diff] [blame] | 119 | 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0), |
| 120 | 1: ByteField(XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData_IntervalEndTime, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1), |
| 121 | 2: Uint16Field(XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData_ThresholdData12Id, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2), |
| 122 | 3: TableField(XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData_InmInpeqHistogramTable, TableAttributeType, 0x2000, TableInfo{nil, 2}, mapset.NewSetWith(Read), false, true, false, 3), |
| 123 | 4: Uint16Field(XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData_InmTotalMeasurement, CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, true, false, 4), |
| 124 | 5: Uint16Field(XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData_InmIatHistogram, CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, true, false, 5), |
| 125 | 6: TableField(XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData_InmInpeqHistogramLfeTable, TableAttributeType, 0x0400, TableInfo{nil, 2}, mapset.NewSetWith(Read), false, true, false, 6), |
| 126 | 7: Uint16Field(XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData_InmTotalMeasurementLfe, CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, true, false, 7), |
| 127 | 8: Uint16Field(XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData_InmIatHistogramLfe, CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8), |
Chip Boling | 6e27b35 | 2020-02-14 09:10:01 -0600 | [diff] [blame] | 128 | }, |
| 129 | Access: CreatedByOlt, |
| 130 | Support: UnknownSupport, |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | // NewXdslImpulseNoiseMonitorPerformanceMonitoringHistoryData (class ID 324) creates the basic |
| 135 | // Managed Entity definition that is used to validate an ME of this type that |
| 136 | // is received from or transmitted to the OMCC. |
| 137 | func NewXdslImpulseNoiseMonitorPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) { |
| 138 | return NewManagedEntity(*xdslimpulsenoisemonitorperformancemonitoringhistorydataBME, params...) |
| 139 | } |