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