blob: 31651eda6e0a348788aee8d588c5e116c3b7b15c [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// VpPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity VP performance monitoring history data
27const VpPerformanceMonitoringHistoryDataClassID ClassID = ClassID(62)
28
29var vpperformancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// VpPerformanceMonitoringHistoryData (class ID #62)
32// This ME collects PM data associated with a VP network CTP. Instances of this ME are created and
33// deleted by the OLT.
34//
35// Relationships
36// An instance of this ME is associated with an instance of the VP network CTP ME. The performance
37// of upstream ATM flows is reported.
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 VP network CTP. (R,
43// setbycreate) (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 ME that
51// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
52// data 2 ME is optional. (R,-W, setbycreate) (mandatory) (2-bytes)
53//
54// Lost C 0 1 Cells
55// Lost C-= 0-+ 1 cells: This attribute counts all cell loss. It cannot distinguish between cells
56// lost because of header bit errors, ATM-level header errors, cell policing, or buffer overflows.
57// It records only loss of information, independent of the priority of the cell. (R) (mandatory)
58// (2-bytes)
59//
60// Lost C_= 0 Cells
61// Lost C-= 0 cells: This attribute counts loss of high priority cells. It cannot distinguish
62// between cells lost because of header bit errors, ATM-level header errors, cell policing, or
63// buffer overflows. It records only loss of high priority cells. (R) (mandatory) (2-bytes)
64//
65// Misinserted Cells
66// Misinserted cells: This attribute counts cells that are misrouted to a monitored VP. (R)
67// (mandatory) (2-bytes)
68//
69// Transmitted C_= 0 _ 1 Cells
70// Transmitted C-= 0-+ 1 cells: This attribute counts cells originated by the transmitting end
71// point (i.e., backward reporting is assumed). (R) (mandatory) (5-bytes)
72//
73// Transmitted C_= 0 Cells
74// Transmitted C-= 0 cells: This attribute counts high priority cells originated by the
75// transmitting end point (i.e., backward reporting is assumed). (R) (mandatory) (5-bytes)
76//
77// Impaired Block
78// Impaired blocks: This severely errored cell block counter is incremented whenever one of the
79// following events takes place: the number of misinserted cells reaches its threshold; the number
80// of bipolar violations reaches its threshold; or the number of lost cells reaches its threshold.
81// Threshold values are based on vendor-operator negotiation. (R) (mandatory) (2-bytes)
82//
83type VpPerformanceMonitoringHistoryData struct {
84 ManagedEntityDefinition
85 Attributes AttributeValueMap
86}
87
88func init() {
89 vpperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
90 Name: "VpPerformanceMonitoringHistoryData",
91 ClassID: 62,
92 MessageTypes: mapset.NewSetWith(
93 Create,
94 Delete,
95 Get,
96 Set,
97 ),
98 AllowedAttributeMask: 0xff00,
99 AttributeDefinitions: AttributeDefinitionMap{
100 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
101 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
102 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
103 3: Uint16Field("LostC01Cells", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
104 4: Uint16Field("LostC=0Cells", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
105 5: Uint16Field("MisinsertedCells", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
106 6: MultiByteField("TransmittedC=01Cells", CounterAttributeType, 0x0400, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read), false, false, false, 6),
107 7: MultiByteField("TransmittedC=0Cells", CounterAttributeType, 0x0200, 5, toOctets("AAAAAAA="), mapset.NewSetWith(Read), false, false, false, 7),
108 8: Uint16Field("ImpairedBlock", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
109 },
110 Access: CreatedByOlt,
111 Support: UnknownSupport,
112 }
113}
114
115// NewVpPerformanceMonitoringHistoryData (class ID 62) creates the basic
116// Managed Entity definition that is used to validate an ME of this type that
117// is received from or transmitted to the OMCC.
118func NewVpPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
119 return NewManagedEntity(*vpperformancemonitoringhistorydataBME, params...)
120}