blob: 72909be9461f1a30f596d6bb742c88d2c07cb8cf [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 VpPerformanceMonitoringHistoryDataClassId ClassID = ClassID(62)
25
26var vpperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// VpPerformanceMonitoringHistoryData (class ID #62)
29// This ME collects PM data associated with a VP network CTP. Instances of this ME are created and
30// deleted by the OLT.
31//
32// Relationships
33// An instance of this ME is associated with an instance of the VP network CTP ME. The performance
34// of upstream ATM flows is reported.
35//
36// Attributes
37// Managed Entity Id
38// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
39// identical ID, this ME is implicitly linked to an instance of the VP network CTP. (R,
40// setbycreate) (mandatory) (2 bytes)
41//
42// Interval End Time
43// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
44// (mandatory) (1 byte)
45//
46// Threshold Data 1_2 Id
47// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
48// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
49// data 2 ME is optional. (R, W, setbycreate) (mandatory) (2 bytes)
50//
51// Lost C 0 1 Cells
52// Lost C = 0 + 1 cells: This attribute counts all cell loss. It cannot distinguish between cells
53// lost because of header bit errors, ATM-level header errors, cell policing, or buffer overflows.
54// It records only loss of information, independent of the priority of the cell. (R) (mandatory)
55// (2 bytes)
56//
57// Lost C_= 0 Cells
58// Lost C = 0 cells: This attribute counts loss of high priority cells. It cannot distinguish
59// between cells lost because of header bit errors, ATM-level header errors, cell policing, or
60// buffer overflows. It records only loss of high priority cells. (R) (mandatory) (2 bytes)
61//
62// Misinserted Cells
63// Misinserted cells: This attribute counts cells that are misrouted to a monitored VP. (R)
64// (mandatory) (2 bytes)
65//
66// Transmitted C_= 0 _ 1 Cells
67// Transmitted C = 0 + 1 cells: This attribute counts cells originated by the transmitting end
68// point (i.e., backward reporting is assumed). (R) (mandatory) (5 bytes)
69//
70// Transmitted C_= 0 Cells
71// Transmitted C = 0 cells: This attribute counts high priority cells originated by the
72// transmitting end point (i.e., backward reporting is assumed). (R) (mandatory) (5 bytes)
73//
74// Impaired Block
75// Impaired blocks: This severely errored cell block counter is incremented whenever one of the
76// following events takes place: the number of misinserted cells reaches its threshold; the number
77// of bipolar violations reaches its threshold; or the number of lost cells reaches its threshold.
78// Threshold values are based on vendor-operator negotiation. (R) (mandatory) (2 bytes)
79//
80type VpPerformanceMonitoringHistoryData struct {
81 ManagedEntityDefinition
82 Attributes AttributeValueMap
83}
84
85func init() {
86 vpperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
87 Name: "VpPerformanceMonitoringHistoryData",
88 ClassID: 62,
89 MessageTypes: mapset.NewSetWith(
90 Create,
91 Delete,
92 Get,
93 Set,
94 ),
95 AllowedAttributeMask: 0XFF00,
96 AttributeDefinitions: AttributeDefinitionMap{
97 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
98 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
99 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
100 3: Uint16Field("LostC01Cells", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
101 4: Uint16Field("LostC=0Cells", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
102 5: Uint16Field("MisinsertedCells", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
103 6: MultiByteField("TransmittedC=01Cells", 5, nil, mapset.NewSetWith(Read), false, false, false, false, 6),
104 7: MultiByteField("TransmittedC=0Cells", 5, nil, mapset.NewSetWith(Read), false, false, false, false, 7),
105 8: Uint16Field("ImpairedBlock", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
106 },
107 }
108}
109
110// NewVpPerformanceMonitoringHistoryData (class ID 62 creates the basic
111// Managed Entity definition that is used to validate an ME of this type that
112// is received from the wire, about to be sent on the wire.
113func NewVpPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
114 return NewManagedEntity(vpperformancemonitoringhistorydataBME, params...)
115}