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