blob: 6c0f0015d251238fe1a02dd21ecda01e861f71e4 [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 EthernetPerformanceMonitoringHistoryDataClassId ClassID = ClassID(24)
25
26var ethernetperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// EthernetPerformanceMonitoringHistoryData (class ID #24)
29// This ME collects some of the PM data for a physical Ethernet interface. Instances of this ME are
30// created and deleted by the OLT.
31//
32// For a complete discussion of generic PM architecture, refer to clause I.4.
33//
34// Relationships
35// An instance of this ME is associated with an instance of the PPTP Ethernet UNI.
36//
37// Attributes
38// Managed Entity Id
39// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
40// identical ID, this ME is implicitly linked to an instance of the PPTP Ethernet UNI. (R,
41// setbycreate) (mandatory) (2 bytes)
42//
43// Interval End Time
44// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
45// (mandatory) (1 byte)
46//
47// Threshold Data 1_2 Id
48// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
49// that contains PM threshold values. (R, W, setbycreate) (mandatory) (2 bytes)
50//
51// Fcs Errors
52// FCS errors: This attribute counts frames received on a particular interface that were an
53// integral number of octets in length but failed the FCS check. The count is incremented when the
54// MAC service returns the frameCheckError status to the link layer control (LLC) or other MAC
55// user. Received frames for which multiple error conditions are obtained are counted according to
56// the error status presented to the LLC. (R) (mandatory) (4 bytes)
57//
58// Excessive Collision Counter
59// Excessive collision counter: This attribute counts frames whose transmission failed due to
60// excessive collisions. (R) (mandatory) (4 bytes)
61//
62// Late Collision Counter
63// Late collision counter: This attribute counts the number of times that a collision was detected
64// later than 512 bit times into the transmission of a packet. (R) (mandatory) (4 bytes)
65//
66// Frames Too Long
67// Frames too long: This attribute counts received frames that exceeded the maximum permitted frame
68// size. The count is incremented when the MAC service returns the frameTooLong status to the LLC.
69// (R) (mandatory) (4 bytes)
70//
71// Buffer Overflows On Receive
72// Buffer overflows on receive: This attribute counts the number of times that the receive buffer
73// overflowed. (R) (mandatory) (4 bytes)
74//
75// Buffer Overflows On Transmit
76// Buffer overflows on transmit: This attribute counts the number of times that the transmit buffer
77// overflowed. (R) (mandatory) (4 bytes)
78//
79// Single Collision Frame Counter
80// Single collision frame counter: This attribute counts successfully transmitted frames whose
81// transmission was delayed by exactly one collision. (R) (mandatory) (4 bytes)
82//
83// Multiple Collisions Frame Counter
84// Multiple collisions frame counter: This attribute counts successfully transmitted frames whose
85// transmission was delayed by more than one collision. (R) (mandatory) (4 bytes)
86//
87// Sqe Counter
88// SQE counter: This attribute counts the number of times that the SQE test error message was
89// generated by the PLS sublayer. (R) (mandatory) (4 bytes)
90//
91// Deferred Transmission Counter
92// Deferred transmission counter: This attribute counts frames whose first transmission attempt was
93// delayed because the medium was busy. The count does not include frames involved in collisions.
94// (R) (mandatory) (4 bytes)
95//
96// Internal Mac Transmit Error Counter
97// Internal MAC transmit error counter: This attribute counts frames whose transmission failed due
98// to an internal MAC sublayer transmit error. (R) (mandatory) (4 bytes)
99//
100// Carrier Sense Error Counter
101// Carrier sense error counter: This attribute counts the number of times that carrier sense was
102// lost or never asserted when attempting to transmit a frame. (R) (mandatory) (4 bytes)
103//
104// Alignment Error Counter
105// Alignment error counter: This attribute counts received frames that were not an integral number
106// of octets in length and did not pass the FCS check. (R) (mandatory) (4 bytes)
107//
108// Internal Mac Receive Error Counter
109// Internal MAC receive error counter: This attribute counts frames whose reception failed due to
110// an internal MAC sublayer receive error. (R) (mandatory) (4 bytes)
111//
112type EthernetPerformanceMonitoringHistoryData struct {
113 ManagedEntityDefinition
114 Attributes AttributeValueMap
115}
116
117func init() {
118 ethernetperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
119 Name: "EthernetPerformanceMonitoringHistoryData",
120 ClassID: 24,
121 MessageTypes: mapset.NewSetWith(
122 Create,
123 Delete,
124 Get,
125 Set,
126 ),
127 AllowedAttributeMask: 0XFFFF,
128 AttributeDefinitions: AttributeDefinitionMap{
129 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
130 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
131 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
132 3: Uint32Field("FcsErrors", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
133 4: Uint32Field("ExcessiveCollisionCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
134 5: Uint32Field("LateCollisionCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
135 6: Uint32Field("FramesTooLong", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
136 7: Uint32Field("BufferOverflowsOnReceive", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
137 8: Uint32Field("BufferOverflowsOnTransmit", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
138 9: Uint32Field("SingleCollisionFrameCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 9),
139 10: Uint32Field("MultipleCollisionsFrameCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 10),
140 11: Uint32Field("SqeCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 11),
141 12: Uint32Field("DeferredTransmissionCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 12),
142 13: Uint32Field("InternalMacTransmitErrorCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 13),
143 14: Uint32Field("CarrierSenseErrorCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 14),
144 15: Uint32Field("AlignmentErrorCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 15),
145 16: Uint32Field("InternalMacReceiveErrorCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 16),
146 },
147 }
148}
149
150// NewEthernetPerformanceMonitoringHistoryData (class ID 24 creates the basic
151// Managed Entity definition that is used to validate an ME of this type that
152// is received from the wire, about to be sent on the wire.
153func NewEthernetPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
154 return NewManagedEntity(ethernetperformancemonitoringhistorydataBME, params...)
155}