blob: 8cbf87ceb5f5cf7f1b60eb6093982f4dc4cf292d [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// FastXtuCPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity FAST xTU-C performance monitoring history data
27const FastXtuCPerformanceMonitoringHistoryDataClassID ClassID = ClassID(437)
28
29var fastxtucperformancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// FastXtuCPerformanceMonitoringHistoryData (class ID #437)
32// This ME collects PM data on the xTU C to xTU R path as seen from the xTU-C. Instances of this ME
33// are created and deleted by the OLT.
34//
35// Relationships
36// An instance of this ME is 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. Through an
41// identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R, set-
42// by-create) (mandatory) (2 bytes)
43//
44// Interval End Time
45// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
46// (mandatory) (1 byte)
47//
48// Threshold Data 1_2 Id
49// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
50// that contain PM threshold values. (R, W, set-by-create) (mandatory) (2 bytes)
51//
52// Successful Fra Counter
53// Successful FRA counter: This attribute counts the successful FRA primitives (success_FRA). The
54// successful FRA primitive (success_FRA) is defined in clause 11.3.1.6 of [ITU-T G.9701]. See
55// clause 7.7.22 of [ITU-T G.997.2]. (R) (mandatory) (4-bytes)
56//
57// Successful Rpa Counter
58// Successful RPA counter: This attribute counts the successful RPA primitives (success_RPA). The
59// successful RPA primitive (success_RPA) is defined in clause 11.3.1.6 of [ITU-T G.9701]. See
60// clause 7.7.23 of [ITU-T G.997.2] (R) (optional) (4 bytes)
61//
62// Successful Tiga Counter
63// Successful TIGA counter: This attribute counts the successful TIGA primitives (success_TIGA).
64// The successful TIGA primitive (success_TIGA) is defined in clause 11.3.1.6 of [ITU-T G.9701].
65// Reported only with the near-end measured time, invalid data flag and timestamp. See clause
66// 7.7.24 of [ITUT-G.997.2] (R) (optional) (4 bytes)
67//
68type FastXtuCPerformanceMonitoringHistoryData struct {
69 ManagedEntityDefinition
70 Attributes AttributeValueMap
71}
72
73func init() {
74 fastxtucperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
75 Name: "FastXtuCPerformanceMonitoringHistoryData",
76 ClassID: 437,
77 MessageTypes: mapset.NewSetWith(
78 Create,
79 Delete,
80 Get,
81 Set,
82 ),
83 AllowedAttributeMask: 0xf800,
84 AttributeDefinitions: AttributeDefinitionMap{
85 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
86 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
87 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
88 3: Uint32Field("SuccessfulFraCounter", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
89 4: Uint32Field("SuccessfulRpaCounter", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, true, false, 4),
90 5: Uint32Field("SuccessfulTigaCounter", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, true, false, 5),
91 },
92 Access: CreatedByOlt,
93 Support: UnknownSupport,
94 }
95}
96
97// NewFastXtuCPerformanceMonitoringHistoryData (class ID 437) creates the basic
98// Managed Entity definition that is used to validate an ME of this type that
99// is received from or transmitted to the OMCC.
100func NewFastXtuCPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
101 return NewManagedEntity(*fastxtucperformancemonitoringhistorydataBME, params...)
102}