blob: e9d2177fc938d5d547044191eaf562b88de8257e [file] [log] [blame]
Matteo Scandolof9d43412021-01-12 11:11:34 -08001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
4
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8
9 * http://www.apache.org/licenses/LICENSE-2.0
10
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17/*
18 * NOTE: This file was generated, manual edits will be overwritten!
19 *
20 * Generated by 'goCodeGenerator.py':
21 * https://github.com/cboling/OMCI-parser/README.md
22 */
23
24package generated
25
26import "github.com/deckarep/golang-set"
27
28// Dot1XPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
29// Managed entity Dot1X performance monitoring history data
Andrea Campanella10426e22021-10-15 17:58:04 +020030const Dot1XPerformanceMonitoringHistoryDataClassID = ClassID(292) // 0x0124
Matteo Scandolof9d43412021-01-12 11:11:34 -080031
32var dot1xperformancemonitoringhistorydataBME *ManagedEntityDefinition
33
Andrea Campanella10426e22021-10-15 17:58:04 +020034// Dot1XPerformanceMonitoringHistoryData (Class ID: #292 / 0x0124)
Matteo Scandolof9d43412021-01-12 11:11:34 -080035// This ME collects performance statistics on an ONU's IEEE 802.1X CPE authentication operation.
36// Instances of this ME are created and deleted by the OLT.
37//
38// For a complete discussion of generic PM architecture, refer to clause I.4.
39//
40// Relationships
41// An instance of this ME may be associated with each UNI that can perform IEEE-802.1X
42// authentication of CPE.
43//
44// Attributes
45// Managed Entity Id
Andrea Campanella10426e22021-10-15 17:58:04 +020046// This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is
47// implicitly linked to an instance of a PPTP. (R, setbycreate) (mandatory) (2-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080048//
49// Interval End Time
Andrea Campanella10426e22021-10-15 17:58:04 +020050// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Matteo Scandolof9d43412021-01-12 11:11:34 -080051//
52// Threshold Data 1_2 Id
53// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
54// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
55//
56// Eapol Frames Received
Andrea Campanella10426e22021-10-15 17:58:04 +020057// This attribute counts received valid EAPOL frames of any type. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080058//
59// Eapol Frames Transmitted
Andrea Campanella10426e22021-10-15 17:58:04 +020060// This attribute counts transmitted EAPOL frames of any type. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080061//
62// Eapol Start Frames Received
Andrea Campanella10426e22021-10-15 17:58:04 +020063// This attribute counts received EAPOL start frames. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080064//
65// Eapol Logoff Frames Received
Andrea Campanella10426e22021-10-15 17:58:04 +020066// This attribute counts received EAPOL logoff frames. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080067//
68// Invalid Eapol Frames Received
Andrea Campanella10426e22021-10-15 17:58:04 +020069// This attribute counts received EAPOL frames in which the frame type was not recognized. (R)
70// (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080071//
72// Eap Resp_Id Frames Received
73// EAP resp/id frames received: This attribute counts received EAP response frames containing an
74// identifier type field. (R) (mandatory) (4-bytes)
75//
76// Eap Response Frames Received
Andrea Campanella10426e22021-10-15 17:58:04 +020077// This attribute counts received EAP response frames, other than resp/id frames. (R) (mandatory)
78// (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080079//
80// Eap Initial Request Frames Transmitted
Andrea Campanella10426e22021-10-15 17:58:04 +020081// This attribute counts transmitted request frames containing an identifier type field. In [IEEE
82// 802.1X], this is also called ReqId. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080083//
84// Eap Request Frames Transmitted
Andrea Campanella10426e22021-10-15 17:58:04 +020085// This attribute counts transmitted request frames, other than request/id frames. (R) (mandatory)
86// (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080087//
88// Eap Length Error Frames Received
Andrea Campanella10426e22021-10-15 17:58:04 +020089// This attribute counts received EAPOL frames whose packet body length field was invalid. (R)
90// (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080091//
92// Eap Success Frames Generated Autonomously
Andrea Campanella10426e22021-10-15 17:58:04 +020093// This attribute counts EAPOL success frames generated according to the local fallback policy
94// because no radius server was available. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080095//
96// Eap Failure Frames Generated Autonomously
Andrea Campanella10426e22021-10-15 17:58:04 +020097// This attribute counts EAPOL failure frames generated according to the local fallback policy
98// because no radius server was available. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080099//
100type Dot1XPerformanceMonitoringHistoryData struct {
101 ManagedEntityDefinition
102 Attributes AttributeValueMap
103}
104
105func init() {
106 dot1xperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
107 Name: "Dot1XPerformanceMonitoringHistoryData",
108 ClassID: 292,
109 MessageTypes: mapset.NewSetWith(
110 Create,
111 Delete,
112 Get,
113 Set,
Girish Gowdrae2683102021-03-05 08:24:26 -0800114 GetCurrentData,
Matteo Scandolof9d43412021-01-12 11:11:34 -0800115 ),
116 AllowedAttributeMask: 0xfffc,
117 AttributeDefinitions: AttributeDefinitionMap{
118 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
119 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
120 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
121 3: Uint32Field("EapolFramesReceived", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
122 4: Uint32Field("EapolFramesTransmitted", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
123 5: Uint32Field("EapolStartFramesReceived", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
124 6: Uint32Field("EapolLogoffFramesReceived", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
125 7: Uint32Field("InvalidEapolFramesReceived", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
126 8: Uint32Field("EapRespIdFramesReceived", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
127 9: Uint32Field("EapResponseFramesReceived", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
128 10: Uint32Field("EapInitialRequestFramesTransmitted", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
129 11: Uint32Field("EapRequestFramesTransmitted", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
130 12: Uint32Field("EapLengthErrorFramesReceived", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
131 13: Uint32Field("EapSuccessFramesGeneratedAutonomously", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
132 14: Uint32Field("EapFailureFramesGeneratedAutonomously", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14),
133 },
134 Access: CreatedByOlt,
135 Support: UnknownSupport,
136 Alarms: AlarmMap{
137 4: "Invalid EAPOL frames received",
138 9: "EAP length error frames received",
139 },
140 }
141}
142
143// NewDot1XPerformanceMonitoringHistoryData (class ID 292) creates the basic
144// Managed Entity definition that is used to validate an ME of this type that
145// is received from or transmitted to the OMCC.
146func NewDot1XPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
147 return NewManagedEntity(*dot1xperformancemonitoringhistorydataBME, params...)
148}