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