blob: 54ce9577be0047d0537c0799139e5bf623e0a857 [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// FastXtuRPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity FAST xTU-R performance monitoring history data
27const FastXtuRPerformanceMonitoringHistoryDataClassID ClassID = ClassID(438)
28
29var fastxturperformancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// FastXtuRPerformanceMonitoringHistoryData (class ID #438)
32// This ME collects PM data of the xTU C to xTU R path as seen from the xTU-R. Instances of this ME
33// are created and deleted by the OLT. For a complete discussion of generic PM architecture, refer
34// to clause I.4.
35//
36// Relationships
37// An instance of this ME is associated with an xDSL UNI.
38//
39// Attributes
40// Managed Entity Id
41// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
42// identical ID, this ME is implicitly linked to an instance of the PPTP xDSL UNI part 1. (R, set-
43// by-create) (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 and 2 MEs
51// that contain PM threshold values. (R, W, set-by-create) (mandatory) (2 bytes)
52//
53// Successful Fra Counter
54// Successful FRA counter: This attribute counts the successful FRA primitives (success_FRA). The
55// successful FRA primitive (success_FRA) is defined in clause 11.3.1.6 of [ITU-T G.9701]. See
56// clause 7.7.22 of [ITU-T G.997.2] (R) (mandatory) (4-bytes)
57//
58// Successful Rpa Counter
59// Successful RPA counter: This attribute counts the successful RPA primitives (success_RPA). The
60// successful RPA primitive (success_RPA) is defined in clause 11.3.1.6 of [ITU-T G.9701]. See
61// clause 7.7.23 of [ITU-T G.997.2] (R) (optional) (4 bytes)
62//
63type FastXtuRPerformanceMonitoringHistoryData struct {
64 ManagedEntityDefinition
65 Attributes AttributeValueMap
66}
67
68func init() {
69 fastxturperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
70 Name: "FastXtuRPerformanceMonitoringHistoryData",
71 ClassID: 438,
72 MessageTypes: mapset.NewSetWith(
73 Create,
74 Delete,
75 Get,
76 Set,
77 ),
78 AllowedAttributeMask: 0xf000,
79 AttributeDefinitions: AttributeDefinitionMap{
80 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
81 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
82 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
83 3: Uint32Field("SuccessfulFraCounter", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
84 4: Uint32Field("SuccessfulRpaCounter", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, true, false, 4),
85 },
86 Access: CreatedByOlt,
87 Support: UnknownSupport,
88 }
89}
90
91// NewFastXtuRPerformanceMonitoringHistoryData (class ID 438) creates the basic
92// Managed Entity definition that is used to validate an ME of this type that
93// is received from or transmitted to the OMCC.
94func NewFastXtuRPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
95 return NewManagedEntity(*fastxturperformancemonitoringhistorydataBME, params...)
96}