blob: fa9ebfd0d02a9e0db2c6f159d2795ba245c70a5b [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Andrea Campanella7167ebb2020-02-24 09:56:38 +01003 * Copyright 2020-present Open Networking Foundation
4
Chip Boling6e27b352020-02-14 09:10:01 -06005 * 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
Andrea Campanella7167ebb2020-02-24 09:56:38 +01008
Chip Boling6e27b352020-02-14 09:10:01 -06009 * http://www.apache.org/licenses/LICENSE-2.0
Andrea Campanella7167ebb2020-02-24 09:56:38 +010010
Chip Boling6e27b352020-02-14 09:10:01 -060011 * 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 */
Chip Boling34ebcb62021-02-02 12:13:58 -060017/*
Chip Boling6e27b352020-02-14 09:10:01 -060018 * 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
30const Dot1XPerformanceMonitoringHistoryDataClassID ClassID = ClassID(292)
31
32var dot1xperformancemonitoringhistorydataBME *ManagedEntityDefinition
33
34// Dot1XPerformanceMonitoringHistoryData (class ID #292)
35// 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
46// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
47// identical ID, this ME is implicitly linked to an instance of a PPTP. (R, setbycreate)
48// (mandatory) (2-bytes)
49//
50// Interval End Time
51// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
52// (mandatory) (1-byte)
53//
54// Threshold Data 1_2 Id
55// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
56// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
57//
58// Eapol Frames Received
59// EAPOL frames received: This attribute counts received valid EAPOL frames of any type. (R)
60// (mandatory) (4-bytes)
61//
62// Eapol Frames Transmitted
63// EAPOL frames transmitted: This attribute counts transmitted EAPOL frames of any type. (R)
64// (mandatory) (4-bytes)
65//
66// Eapol Start Frames Received
67// EAPOL start frames received: This attribute counts received EAPOL start frames. (R) (mandatory)
68// (4-bytes)
69//
70// Eapol Logoff Frames Received
71// EAPOL logoff frames received: This attribute counts received EAPOL logoff frames. (R)
72// (mandatory) (4-bytes)
73//
74// Invalid Eapol Frames Received
75// Invalid EAPOL frames received: This attribute counts received EAPOL frames in which the frame
76// type was not recognized. (R) (mandatory) (4-bytes)
77//
78// Eap Resp_Id Frames Received
79// EAP resp/id frames received: This attribute counts received EAP response frames containing an
80// identifier type field. (R) (mandatory) (4-bytes)
81//
82// Eap Response Frames Received
83// EAP response frames received: This attribute counts received EAP response frames, other than
84// resp/id frames. (R) (mandatory) (4-bytes)
85//
86// Eap Initial Request Frames Transmitted
87// EAP initial request frames transmitted: This attribute counts transmitted request frames
88// containing an identifier type field. In [IEEE 802.1X], this is also called ReqId. (R)
89// (mandatory) (4-bytes)
90//
91// Eap Request Frames Transmitted
92// EAP request frames transmitted: This attribute counts transmitted request frames, other than
93// request/id frames. (R) (mandatory) (4-bytes)
94//
95// Eap Length Error Frames Received
96// EAP length error frames received: This attribute counts received EAPOL frames whose packet body
97// length field was invalid. (R) (mandatory) (4-bytes)
98//
99// Eap Success Frames Generated Autonomously
100// EAP success frames generated autonomously: This attribute counts EAPOL success frames generated
101// according to the local fallback policy because no radius server was available. (R) (mandatory)
102// (4-bytes)
103//
104// Eap Failure Frames Generated Autonomously
105// EAP failure frames generated autonomously: This attribute counts EAPOL failure frames generated
106// according to the local fallback policy because no radius server was available. (R) (mandatory)
107// (4-bytes)
108//
109type Dot1XPerformanceMonitoringHistoryData struct {
110 ManagedEntityDefinition
111 Attributes AttributeValueMap
112}
113
114func init() {
115 dot1xperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
116 Name: "Dot1XPerformanceMonitoringHistoryData",
117 ClassID: 292,
118 MessageTypes: mapset.NewSetWith(
119 Create,
120 Delete,
121 Get,
122 Set,
123 ),
124 AllowedAttributeMask: 0xfffc,
125 AttributeDefinitions: AttributeDefinitionMap{
126 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
127 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
128 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
129 3: Uint32Field("EapolFramesReceived", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
130 4: Uint32Field("EapolFramesTransmitted", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
131 5: Uint32Field("EapolStartFramesReceived", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
132 6: Uint32Field("EapolLogoffFramesReceived", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
133 7: Uint32Field("InvalidEapolFramesReceived", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
134 8: Uint32Field("EapRespIdFramesReceived", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
135 9: Uint32Field("EapResponseFramesReceived", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
136 10: Uint32Field("EapInitialRequestFramesTransmitted", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
137 11: Uint32Field("EapRequestFramesTransmitted", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
138 12: Uint32Field("EapLengthErrorFramesReceived", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
139 13: Uint32Field("EapSuccessFramesGeneratedAutonomously", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
140 14: Uint32Field("EapFailureFramesGeneratedAutonomously", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14),
141 },
142 Access: CreatedByOlt,
143 Support: UnknownSupport,
Chip Boling34ebcb62021-02-02 12:13:58 -0600144 Alarms: AlarmMap{
145 4: "Invalid EAPOL frames received",
146 9: "EAP length error frames received",
147 },
Chip Boling6e27b352020-02-14 09:10:01 -0600148 }
149}
150
151// NewDot1XPerformanceMonitoringHistoryData (class ID 292) creates the basic
152// Managed Entity definition that is used to validate an ME of this type that
153// is received from or transmitted to the OMCC.
154func NewDot1XPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
155 return NewManagedEntity(*dot1xperformancemonitoringhistorydataBME, params...)
156}