blob: 32f1a0103cd61ded044329be00feca860c914ea5 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
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 */
20package generated
21
22import "github.com/deckarep/golang-set"
23
24const XdslXtuRChannelPerformanceMonitoringHistoryDataClassId ClassID = ClassID(115)
25
26var xdslxturchannelperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// XdslXtuRChannelPerformanceMonitoringHistoryData (class ID #115)
29// This ME collects PM data of the xTUC to xTUR channel as seen from the xTU-R. Instances of this
30// ME are created and deleted by the OLT.
31//
32// For a complete discussion of generic PM architecture, refer to clause I.4.
33//
34// Relationships
35// An instance of this ME is associated with an xDSL bearer channel. Several instances may
36// therefore be associated with an xDSL UNI.
37//
38// Attributes
39// Managed Entity Id
40// Managed entity ID: This attribute uniquely identifies each instance of this ME. The two MSBs of
41// the first byte are the bearer channel ID. Excluding the first 2 bits of the first byte, the
42// remaining part of the ME ID is identical to that of this ME's parent PPTP xDSL UNI part 1. (R,
43// setbycreate) (mandatory) (2 bytes)
44//
45// Interval End Time
46// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
47// (mandatory) (1 byte)
48//
49// Threshold Data 1_2 Id
50// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
51// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
52// data 2 ME is optional. (R, W, setbycreate) (mandatory) (2 bytes)
53//
54// Corrected Blocks
55// Corrected blocks: This attribute counts blocks received with errors that were corrected on this
56// channel. (R) (mandatory) (4 bytes)
57//
58// Uncorrected Blocks
59// Uncorrected blocks: This attribute counts blocks received with uncorrectable errors on this
60// channel. (R) (mandatory) (4 bytes)
61//
62// Transmitted Blocks
63// Transmitted blocks: This attribute counts encoded blocks transmitted on this channel. (R)
64// (mandatory) (4 bytes)
65//
66// Received Blocks
67// Received blocks: This attribute counts encoded blocks received on this channel. (R) (mandatory)
68// (4 bytes)
69//
70// Code Violations
71// Code violations: This attribute counts FEBE anomalies reported in the downstream bearer channel.
72// If the CRC is applied over multiple bearer channels, then each related FEBE anomaly increments
73// each of the counters related to the individual bearer channels. (R) (mandatory) (2 bytes)
74//
75// Forward Error Corrections
76// Forward error corrections: This attribute counts FFEC anomalies reported in the downstream
77// bearer channel. If FEC is applied over multiple bearer channels, each related FFEC anomaly
78// increments each of the counters related to the individual bearer channels. (R) (mandatory)
79// (2 bytes)
80//
81type XdslXtuRChannelPerformanceMonitoringHistoryData struct {
82 ManagedEntityDefinition
83 Attributes AttributeValueMap
84}
85
86func init() {
87 xdslxturchannelperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
88 Name: "XdslXtuRChannelPerformanceMonitoringHistoryData",
89 ClassID: 115,
90 MessageTypes: mapset.NewSetWith(
91 Create,
92 Delete,
93 Get,
94 Set,
95 ),
96 AllowedAttributeMask: 0XFF00,
97 AttributeDefinitions: AttributeDefinitionMap{
98 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
99 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
100 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
101 3: Uint32Field("CorrectedBlocks", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
102 4: Uint32Field("UncorrectedBlocks", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
103 5: Uint32Field("TransmittedBlocks", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
104 6: Uint32Field("ReceivedBlocks", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
105 7: Uint16Field("CodeViolations", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
106 8: Uint16Field("ForwardErrorCorrections", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
107 },
108 }
109}
110
111// NewXdslXtuRChannelPerformanceMonitoringHistoryData (class ID 115 creates the basic
112// Managed Entity definition that is used to validate an ME of this type that
113// is received from the wire, about to be sent on the wire.
114func NewXdslXtuRChannelPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
115 return NewManagedEntity(xdslxturchannelperformancemonitoringhistorydataBME, params...)
116}