blob: 18d4bd6f19a6f7ab831fc5c20e7fd59b156a3033 [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 Dot1XPerformanceMonitoringHistoryDataClassId ClassID = ClassID(292)
25
26var dot1xperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// Dot1XPerformanceMonitoringHistoryData (class ID #292)
29// This ME collects performance statistics on an ONU's IEEE 802.1X CPE authentication operation.
30// Instances of this ME are 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 may be associated with each UNI that can perform IEEE 802.1X
36// authentication of CPE.
37//
38// Attributes
39// Managed Entity Id
40// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
41// identical ID, this ME is implicitly linked to an instance of a PPTP. (R, setbycreate)
42// (mandatory) (2 bytes)
43//
44// Interval End Time
45// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
46// (mandatory) (1 byte)
47//
48// Threshold Data 1_2 Id
49// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
50// that contains PM threshold values. (R, W, setbycreate) (mandatory) (2 bytes)
51//
52// Eapol Frames Received
53// EAPOL frames received: This attribute counts received valid EAPOL frames of any type. (R)
54// (mandatory) (4 bytes)
55//
56// Eapol Frames Transmitted
57// EAPOL frames transmitted: This attribute counts transmitted EAPOL frames of any type. (R)
58// (mandatory) (4 bytes)
59//
60// Eapol Start Frames Received
61// EAPOL start frames received: This attribute counts received EAPOL start frames. (R) (mandatory)
62// (4 bytes)
63//
64// Eapol Logoff Frames Received
65// EAPOL logoff frames received: This attribute counts received EAPOL logoff frames. (R)
66// (mandatory) (4 bytes)
67//
68// Invalid Eapol Frames Received
69// Invalid EAPOL frames received: This attribute counts received EAPOL frames in which the frame
70// type was not recognized. (R) (mandatory) (4 bytes)
71//
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
77// EAP response frames received: This attribute counts received EAP response frames, other than
78// resp/id frames. (R) (mandatory) (4 bytes)
79//
80// Eap Initial Request Frames Transmitted
81// EAP initial request frames transmitted: This attribute counts transmitted request frames
82// containing an identifier type field. In [IEEE 802.1X], this is also called ReqId. (R)
83// (mandatory) (4 bytes)
84//
85// Eap Request Frames Transmitted
86// EAP request frames transmitted: This attribute counts transmitted request frames, other than
87// request/id frames. (R) (mandatory) (4 bytes)
88//
89// Eap Length Error Frames Received
90// EAP length error frames received: This attribute counts received EAPOL frames whose packet body
91// length field was invalid. (R) (mandatory) (4 bytes)
92//
93// Eap Success Frames Generated Autonomously
94// EAP success frames generated autonomously: This attribute counts EAPOL success frames generated
95// according to the local fallback policy because no radius server was available. (R) (mandatory)
96// (4 bytes)
97//
98// Eap Failure Frames Generated Autonomously
99// EAP failure frames generated autonomously: This attribute counts EAPOL failure frames generated
100// according to the local fallback policy because no radius server was available. (R) (mandatory)
101// (4 bytes)
102//
103type Dot1XPerformanceMonitoringHistoryData struct {
104 ManagedEntityDefinition
105 Attributes AttributeValueMap
106}
107
108func init() {
109 dot1xperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
110 Name: "Dot1XPerformanceMonitoringHistoryData",
111 ClassID: 292,
112 MessageTypes: mapset.NewSetWith(
113 Create,
114 Delete,
115 Get,
116 Set,
117 ),
118 AllowedAttributeMask: 0XFFFC,
119 AttributeDefinitions: AttributeDefinitionMap{
120 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
121 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
122 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
123 3: Uint32Field("EapolFramesReceived", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
124 4: Uint32Field("EapolFramesTransmitted", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
125 5: Uint32Field("EapolStartFramesReceived", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
126 6: Uint32Field("EapolLogoffFramesReceived", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
127 7: Uint32Field("InvalidEapolFramesReceived", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
128 8: Uint32Field("EapRespIdFramesReceived", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
129 9: Uint32Field("EapResponseFramesReceived", 0, mapset.NewSetWith(Read), false, false, false, false, 9),
130 10: Uint32Field("EapInitialRequestFramesTransmitted", 0, mapset.NewSetWith(Read), false, false, false, false, 10),
131 11: Uint32Field("EapRequestFramesTransmitted", 0, mapset.NewSetWith(Read), false, false, false, false, 11),
132 12: Uint32Field("EapLengthErrorFramesReceived", 0, mapset.NewSetWith(Read), false, false, false, false, 12),
133 13: Uint32Field("EapSuccessFramesGeneratedAutonomously", 0, mapset.NewSetWith(Read), false, false, false, false, 13),
134 14: Uint32Field("EapFailureFramesGeneratedAutonomously", 0, mapset.NewSetWith(Read), false, false, false, false, 14),
135 },
136 }
137}
138
139// NewDot1XPerformanceMonitoringHistoryData (class ID 292 creates the basic
140// Managed Entity definition that is used to validate an ME of this type that
141// is received from the wire, about to be sent on the wire.
142func NewDot1XPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
143 return NewManagedEntity(dot1xperformancemonitoringhistorydataBME, params...)
144}