blob: 0c501ca3010bcfdb7a7ffef8b06184146b0a97c8 [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 XdslXtuCChannelPerformanceMonitoringHistoryDataClassId ClassID = ClassID(114)
25
26var xdslxtucchannelperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// XdslXtuCChannelPerformanceMonitoringHistoryData (class ID #114)
29// This ME collects PM data of an xTUC to xTUR channel as seen from the xTU-C. Instances of this ME
30// 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 CRC-8 anomalies in the bearer channel. (R) (mandatory)
72// (2 bytes)
73//
74// Forward Error Corrections
75// Forward error corrections: This attribute counts FEC anomalies in the bearer channel. (R)
76// (mandatory) (2 bytes)
77//
78type XdslXtuCChannelPerformanceMonitoringHistoryData struct {
79 ManagedEntityDefinition
80 Attributes AttributeValueMap
81}
82
83func init() {
84 xdslxtucchannelperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
85 Name: "XdslXtuCChannelPerformanceMonitoringHistoryData",
86 ClassID: 114,
87 MessageTypes: mapset.NewSetWith(
88 Create,
89 Delete,
90 Get,
91 Set,
92 ),
93 AllowedAttributeMask: 0XFF00,
94 AttributeDefinitions: AttributeDefinitionMap{
95 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
96 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
97 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
98 3: Uint32Field("CorrectedBlocks", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
99 4: Uint32Field("UncorrectedBlocks", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
100 5: Uint32Field("TransmittedBlocks", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
101 6: Uint32Field("ReceivedBlocks", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
102 7: Uint16Field("CodeViolations", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
103 8: Uint16Field("ForwardErrorCorrections", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
104 },
105 }
106}
107
108// NewXdslXtuCChannelPerformanceMonitoringHistoryData (class ID 114 creates the basic
109// Managed Entity definition that is used to validate an ME of this type that
110// is received from the wire, about to be sent on the wire.
111func NewXdslXtuCChannelPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
112 return NewManagedEntity(xdslxtucchannelperformancemonitoringhistorydataBME, params...)
113}