blob: 75125b32c38ebc24d15c47d6df253027199c000e [file] [log] [blame]
Matteo Scandolof9d43412021-01-12 11:11:34 -08001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
4
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
8
9 * http://www.apache.org/licenses/LICENSE-2.0
10
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 */
Girish Gowdrae2683102021-03-05 08:24:26 -080017/*
Matteo Scandolof9d43412021-01-12 11:11:34 -080018 * 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
24package generated
25
26import "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
Andrea Campanella10426e22021-10-15 17:58:04 +020030const XdslImpulseNoiseMonitorPerformanceMonitoringHistoryDataClassID = ClassID(324) // 0x0144
Matteo Scandolof9d43412021-01-12 11:11:34 -080031
32var xdslimpulsenoisemonitorperformancemonitoringhistorydataBME *ManagedEntityDefinition
33
Andrea Campanella10426e22021-10-15 17:58:04 +020034// XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData (Class ID: #324 / 0x0144)
Matteo Scandolof9d43412021-01-12 11:11:34 -080035// 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
Andrea Campanella10426e22021-10-15 17:58:04 +020048// 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)
Matteo Scandolof9d43412021-01-12 11:11:34 -080050//
51// Interval End Time
Andrea Campanella10426e22021-10-15 17:58:04 +020052// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Matteo Scandolof9d43412021-01-12 11:11:34 -080053//
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
Andrea Campanella10426e22021-10-15 17:58:04 +020060// 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)
Matteo Scandolof9d43412021-01-12 11:11:34 -080063//
64// Inm Total Measurement
Andrea Campanella10426e22021-10-15 17:58:04 +020065// 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)
Matteo Scandolof9d43412021-01-12 11:11:34 -080068//
69// Inm Iat Histogram
Andrea Campanella10426e22021-10-15 17:58:04 +020070// 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)
Matteo Scandolof9d43412021-01-12 11:11:34 -080073//
74// Inm Inpeq Histogram Lfe Table
Andrea Campanella10426e22021-10-15 17:58:04 +020075// 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)
Matteo Scandolof9d43412021-01-12 11:11:34 -080078//
79// Inm Total Measurement Lfe
Andrea Campanella10426e22021-10-15 17:58:04 +020080// 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)
Matteo Scandolof9d43412021-01-12 11:11:34 -080083//
84// Inm Iat Histogram Lfe
Andrea Campanella10426e22021-10-15 17:58:04 +020085// 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)
Matteo Scandolof9d43412021-01-12 11:11:34 -080088//
89type XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData struct {
90 ManagedEntityDefinition
91 Attributes AttributeValueMap
92}
93
94func init() {
95 xdslimpulsenoisemonitorperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
96 Name: "XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData",
97 ClassID: 324,
98 MessageTypes: mapset.NewSetWith(
99 Create,
100 Delete,
101 Get,
102 GetNext,
103 Set,
Girish Gowdrae2683102021-03-05 08:24:26 -0800104 GetCurrentData,
Matteo Scandolof9d43412021-01-12 11:11:34 -0800105 ),
106 AllowedAttributeMask: 0xff00,
107 AttributeDefinitions: AttributeDefinitionMap{
108 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
109 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
110 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
111 3: TableField("InmInpeqHistogramTable", TableAttributeType, 0x2000, TableInfo{nil, 2}, mapset.NewSetWith(Read), false, true, false, 3),
112 4: Uint16Field("InmTotalMeasurement", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, true, false, 4),
113 5: Uint16Field("InmIatHistogram", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, true, false, 5),
114 6: TableField("InmInpeqHistogramLfeTable", TableAttributeType, 0x0400, TableInfo{nil, 2}, mapset.NewSetWith(Read), false, true, false, 6),
115 7: Uint16Field("InmTotalMeasurementLfe", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, true, false, 7),
116 8: Uint16Field("InmIatHistogramLfe", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8),
117 },
118 Access: CreatedByOlt,
119 Support: UnknownSupport,
120 }
121}
122
123// NewXdslImpulseNoiseMonitorPerformanceMonitoringHistoryData (class ID 324) creates the basic
124// Managed Entity definition that is used to validate an ME of this type that
125// is received from or transmitted to the OMCC.
126func NewXdslImpulseNoiseMonitorPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
127 return NewManagedEntity(*xdslimpulsenoisemonitorperformancemonitoringhistorydataBME, params...)
128}