blob: 3dbab8f7edee48f77a5114b6527b747b03fd79a9 [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// XdslXtuCChannelPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity xDSL xTU-C channel performance monitoring history data
27const XdslXtuCChannelPerformanceMonitoringHistoryDataClassID ClassID = ClassID(114)
28
29var xdslxtucchannelperformancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// XdslXtuCChannelPerformanceMonitoringHistoryData (class ID #114)
32// This ME collects PM data of an xTUC to xTUR channel as seen from the xTU-C. Instances of this ME
33// 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 CRC-8 anomalies in the bearer channel. (R) (mandatory)
75// (2-bytes)
76//
77// Forward Error Corrections
78// Forward error corrections: This attribute counts FEC anomalies in the bearer channel. (R)
79// (mandatory) (2-bytes)
80//
81type XdslXtuCChannelPerformanceMonitoringHistoryData struct {
82 ManagedEntityDefinition
83 Attributes AttributeValueMap
84}
85
86func init() {
87 xdslxtucchannelperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
88 Name: "XdslXtuCChannelPerformanceMonitoringHistoryData",
89 ClassID: 114,
90 MessageTypes: mapset.NewSetWith(
91 Create,
92 Delete,
93 Get,
94 Set,
95 ),
96 AllowedAttributeMask: 0xff00,
97 AttributeDefinitions: AttributeDefinitionMap{
98 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
99 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
100 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
101 3: Uint32Field("CorrectedBlocks", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
102 4: Uint32Field("UncorrectedBlocks", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
103 5: Uint32Field("TransmittedBlocks", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
104 6: Uint32Field("ReceivedBlocks", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
105 7: Uint16Field("CodeViolations", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
106 8: Uint16Field("ForwardErrorCorrections", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
107 },
108 Access: CreatedByOlt,
109 Support: UnknownSupport,
110 }
111}
112
113// NewXdslXtuCChannelPerformanceMonitoringHistoryData (class ID 114) creates the basic
114// Managed Entity definition that is used to validate an ME of this type that
115// is received from or transmitted to the OMCC.
116func NewXdslXtuCChannelPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
117 return NewManagedEntity(*xdslxtucchannelperformancemonitoringhistorydataBME, params...)
118}