blob: 6f725aa0bd78f666a8827e564961889a7b962bc9 [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Andrea Campanella7167ebb2020-02-24 09:56:38 +01003 * Copyright 2020-present Open Networking Foundation
4
Chip Boling6e27b352020-02-14 09:10:01 -06005 * 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 Campanella7167ebb2020-02-24 09:56:38 +01008
Chip Boling6e27b352020-02-14 09:10:01 -06009 * http://www.apache.org/licenses/LICENSE-2.0
Andrea Campanella7167ebb2020-02-24 09:56:38 +010010
Chip Boling6e27b352020-02-14 09:10:01 -060011 * 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 */
Andrea Campanella7167ebb2020-02-24 09:56:38 +010017 /*
Chip Boling6e27b352020-02-14 09:10:01 -060018 * 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
30const XdslImpulseNoiseMonitorPerformanceMonitoringHistoryDataClassID ClassID = ClassID(324)
31
32var xdslimpulsenoisemonitorperformancemonitoringhistorydataBME *ManagedEntityDefinition
33
34// XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData (class ID #324)
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
48// Managed entity ID: This attribute uniquely identifies each instance of this ME. The ME ID is
49// identical to that of this ME's parent PPTP xDSL UNI part 1. (R, setbycreate) (mandatory)
50// (2-bytes)
51//
52// Interval End Time
53// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
54// (mandatory) (1-byte)
55//
56// Threshold Data 1_2 Id
57// Threshold data 1/2 ID: No thresholds are defined for this ME. For uniformity with other PM, the
58// attribute is retained and shown as mandatory, but it should be set to a null pointer. (R,-W,
59// setbycreate) (mandatory) (2-bytes)
60//
61// Inm Inpeq Histogram Table
62// INM INPEQ histogram table: INMINPEQ1..17-L is a count of the near-end INMAINPEQi anomalies
63// occurring on the line during the accumulation period. This parameter is subject to inhibiting -
64// see clause 7.2.7.13 of [ITUT-G.997.1]. (R) (optional) (2-bytes * 17 entries-= 34-bytes)
65//
66// Inm Total Measurement
67// INM total measurement: INMME-L is a count of the near-end INMAME anomalies occurring on the line
68// during the accumulation period. This parameter is subject to inhibiting - see clause 7.2.7.13 of
69// [ITUT G.997.1]. (R) (optional) (2-bytes)
70//
71// Inm Iat Histogram
72// INM IAT histogram: INMIAT0..7-L is a count of the near-end INMAIATi anomalies occurring on the
73// line during the accumulation period. This parameter is subject to inhibiting - see clause
74// 7.2.7.13 of [ITUT G.997.1]. (R) (optional) (2-bytes-* 8 entries-= 16-bytes)
75//
76// Inm Inpeq Histogram Lfe Table
77// INM INPEQ histogram LFE table: INMINPEQ1..17-LFE is a count of the far-end INMAINPEQi anomalies
78// occurring on the line during the accumulation period. This parameter is subject to inhibiting -
79// see clause 7.2.7.13 of [ITUT-G.997.1]. (R) (optional) (2-bytes * 17 entries-= 34-bytes)
80//
81// Inm Total Measurement Lfe
82// INM total measurement LFE: INMME-LFE is a count of the far-end INMAME anomalies occurring on the
83// line during the accumulation period. This parameter is subject to inhibiting - see clause
84// 7.2.7.13 of [ITUT G.997.1]. (R) (optional) (2-bytes)
85//
86// Inm Iat Histogram Lfe
87// INM IAT histogram LFE: INMIAT0..7-LFE is a count of the far-end INMAIATi anomalies occurring on
88// the line during the accumulation period. This parameter is subject to inhibiting - see clause
89// 7.2.7.13 of [ITUT G.997.1]. (R) (optional) (2-bytes-* 8 entries-= 16-bytes)
90//
91type XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData struct {
92 ManagedEntityDefinition
93 Attributes AttributeValueMap
94}
95
96func init() {
97 xdslimpulsenoisemonitorperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
98 Name: "XdslImpulseNoiseMonitorPerformanceMonitoringHistoryData",
99 ClassID: 324,
100 MessageTypes: mapset.NewSetWith(
101 Create,
102 Delete,
103 Get,
104 GetNext,
105 Set,
106 ),
107 AllowedAttributeMask: 0xff00,
108 AttributeDefinitions: AttributeDefinitionMap{
109 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
110 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
111 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
112 3: TableField("InmInpeqHistogramTable", TableAttributeType, 0x2000, TableInfo{nil, 2}, mapset.NewSetWith(Read), false, true, false, 3),
113 4: Uint16Field("InmTotalMeasurement", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, true, false, 4),
114 5: Uint16Field("InmIatHistogram", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, true, false, 5),
115 6: TableField("InmInpeqHistogramLfeTable", TableAttributeType, 0x0400, TableInfo{nil, 2}, mapset.NewSetWith(Read), false, true, false, 6),
116 7: Uint16Field("InmTotalMeasurementLfe", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, true, false, 7),
117 8: Uint16Field("InmIatHistogramLfe", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8),
118 },
119 Access: CreatedByOlt,
120 Support: UnknownSupport,
121 }
122}
123
124// NewXdslImpulseNoiseMonitorPerformanceMonitoringHistoryData (class ID 324) creates the basic
125// Managed Entity definition that is used to validate an ME of this type that
126// is received from or transmitted to the OMCC.
127func NewXdslImpulseNoiseMonitorPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
128 return NewManagedEntity(*xdslimpulsenoisemonitorperformancemonitoringhistorydataBME, params...)
129}