blob: 93be0f3b3a3bf2f6ef5980aa5ce719eae587c8ba [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 RadiusPerformanceMonitoringHistoryDataClassId ClassID = ClassID(293)
25
26var radiusperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// RadiusPerformanceMonitoringHistoryData (class ID #293)
29// This ME collects performance statistics on an ONU's radius client, particularly as related to
30// its IEEE 802.1X operation.
31//
32// Instances of this ME are created and deleted by the OLT.
33//
34// For a complete discussion of generic PM architecture, refer to clause I.4.
35//
36// Relationships
37// An instance of this ME is associated with an ONU.
38//
39// Attributes
40// Managed Entity Id
41// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
42// identical ID (namely 0), this ME is implicitly linked to an instance of a dot1X configuration
43// profile. (R, setbycreate) (mandatory) (2 bytes)
44//
45// Interval End Time
46// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
47// (mandatory) (1 byte)
48//
49// Threshold Data 1_2 Id
50// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
51// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
52// data 2 ME is optional. (R, W, setbycreate) (mandatory) (2 bytes)
53//
54// Access_Request Packets Transmitted
55// Access-request packets transmitted: This attribute counts transmitted radius access-request
56// messages, including retransmissions. (R) (mandatory) (4 bytes)
57//
58// Access_Request Retransmission Count
59// Access-request retransmission count: This attribute counts radius access-request
60// retransmissions. (R) (mandatory) (4 bytes)
61//
62// Access_Challenge Packets Received
63// Access-challenge packets received: This attribute counts received radius access-challenge
64// messages. (R) (mandatory) (4 bytes)
65//
66// Access_Accept Packets Received
67// Access-accept packets received: This attribute counts received radius access-accept messages.
68// (R) (mandatory) (4 bytes)
69//
70// Access_Reject Packets Received
71// Access-reject packets received: This attribute counts received radius access-reject messages.
72// (R) (mandatory) (4 bytes)
73//
74// Invalid Radius Packets Received
75// Invalid radius packets received: This attribute counts received invalid radius messages. (R)
76// (mandatory) (4 bytes)
77//
78type RadiusPerformanceMonitoringHistoryData struct {
79 ManagedEntityDefinition
80 Attributes AttributeValueMap
81}
82
83func init() {
84 radiusperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
85 Name: "RadiusPerformanceMonitoringHistoryData",
86 ClassID: 293,
87 MessageTypes: mapset.NewSetWith(
88 Create,
89 Delete,
90 Get,
91 Set,
92 ),
93 AllowedAttributeMask: 0XFF00,
94 AttributeDefinitions: AttributeDefinitionMap{
95 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
96 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
97 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
98 3: Uint32Field("AccessRequestPacketsTransmitted", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
99 4: Uint32Field("AccessRequestRetransmissionCount", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
100 5: Uint32Field("AccessChallengePacketsReceived", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
101 6: Uint32Field("AccessAcceptPacketsReceived", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
102 7: Uint32Field("AccessRejectPacketsReceived", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
103 8: Uint32Field("InvalidRadiusPacketsReceived", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
104 },
105 }
106}
107
108// NewRadiusPerformanceMonitoringHistoryData (class ID 293 creates the basic
109// Managed Entity definition that is used to validate an ME of this type that
110// is received from the wire, about to be sent on the wire.
111func NewRadiusPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
112 return NewManagedEntity(radiusperformancemonitoringhistorydataBME, params...)
113}