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