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