blob: 3138dbfcd05af8da3c90cb28a7ec60636466d29f [file] [log] [blame]
Matteo Scandolof9d43412021-01-12 11:11:34 -08001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
3 * Copyright 2020-present Open Networking Foundation
Elia Battiston9bfe1102022-02-03 10:38:03 +01004 *
Matteo Scandolof9d43412021-01-12 11:11:34 -08005 * 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
Elia Battiston9bfe1102022-02-03 10:38:03 +01008 *
Matteo Scandolof9d43412021-01-12 11:11:34 -08009 * http://www.apache.org/licenses/LICENSE-2.0
Elia Battiston9bfe1102022-02-03 10:38:03 +010010 *
Matteo Scandolof9d43412021-01-12 11:11:34 -080011 * 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 */
Girish Gowdrae2683102021-03-05 08:24:26 -080017/*
Matteo Scandolof9d43412021-01-12 11:11:34 -080018 * 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// EfmBondingGroupPerformanceMonitoringHistoryDataPart2ClassID is the 16-bit ID for the OMCI
29// Managed entity EFM bonding group performance monitoring history data part 2
Andrea Campanella10426e22021-10-15 17:58:04 +020030const EfmBondingGroupPerformanceMonitoringHistoryDataPart2ClassID = ClassID(421) // 0x01a5
Matteo Scandolof9d43412021-01-12 11:11:34 -080031
32var efmbondinggroupperformancemonitoringhistorydatapart2BME *ManagedEntityDefinition
33
Andrea Campanella10426e22021-10-15 17:58:04 +020034// EfmBondingGroupPerformanceMonitoringHistoryDataPart2 (Class ID: #421 / 0x01a5)
Matteo Scandolof9d43412021-01-12 11:11:34 -080035// This ME collects PM data as seen at the xTU-C. Instances of this ME are created and deleted by
36// the OLT.
37//
38// Relationships
39// An instance of this ME is associated with an xDSL UNI.
40//
41// Attributes
42// Managed Entity Id
Andrea Campanella10426e22021-10-15 17:58:04 +020043// This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is
44// implicitly linked to an instance of the EFM bonding group. (R, setbycreate) (mandatory)
45// (2-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080046//
47// Interval End Time
Andrea Campanella10426e22021-10-15 17:58:04 +020048// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Matteo Scandolof9d43412021-01-12 11:11:34 -080049//
50// Threshold Data 1_2 Id
51// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
52// that contain PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
53//
54// Rx Unicast Frames
Andrea Campanella10426e22021-10-15 17:58:04 +020055// Number of unicast Ethernet frames received over this group. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080056//
57// Tx Unicast Frames
Andrea Campanella10426e22021-10-15 17:58:04 +020058// Number of unicast Ethernet frames transmitted over this group. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080059//
60// Rx Unicast Bytes
Andrea Campanella10426e22021-10-15 17:58:04 +020061// Number of bytes contained in the unicast Ethernet frames received over this group. (R)
62// (mandatory) (8-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080063//
64// Tx Unicast Bytes
Andrea Campanella10426e22021-10-15 17:58:04 +020065// Number of bytes contained in the unicast Ethernet frames transmitted over this group. (R)
66// (mandatory) (8-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080067//
68// Rx Broadcast Frames
Andrea Campanella10426e22021-10-15 17:58:04 +020069// Number of broadcast Ethernet frames received over this group. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080070//
71// Tx Broadcast Frames
Andrea Campanella10426e22021-10-15 17:58:04 +020072// Number of broadcast Ethernet frames transmitted over this group. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080073//
74// Rx Broadcast Bytes
Andrea Campanella10426e22021-10-15 17:58:04 +020075// Number of bytes contained in the broadcast Ethernet frames received over this group. (R)
76// (mandatory) (8-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080077//
78// Tx Broadcast Bytes
Andrea Campanella10426e22021-10-15 17:58:04 +020079// Number of bytes contained in the broadcast Ethernet frames transmitted over this group. (R)
80// (mandatory) (8-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080081//
82// Rx Multicast Frames
Andrea Campanella10426e22021-10-15 17:58:04 +020083// Number of multicast Ethernet frames received over this group. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080084//
85// Tx Multicast Frames
Andrea Campanella10426e22021-10-15 17:58:04 +020086// Number of multicast Ethernet frames transmitted over this group. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080087//
88// Rx Multicast Bytes
Andrea Campanella10426e22021-10-15 17:58:04 +020089// Number of bytes contained in the multicast Ethernet frames received over this group. (R)
90// (mandatory) (8-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080091//
92// Tx Multicast Bytes
Andrea Campanella10426e22021-10-15 17:58:04 +020093// Number of bytes contained in the multicast Ethernet frames transmitted over this group. (R)
94// (mandatory) (8-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080095//
96type EfmBondingGroupPerformanceMonitoringHistoryDataPart2 struct {
97 ManagedEntityDefinition
98 Attributes AttributeValueMap
99}
100
Elia Battiston9bfe1102022-02-03 10:38:03 +0100101// Attribute name constants
102
103const EfmBondingGroupPerformanceMonitoringHistoryDataPart2_IntervalEndTime = "IntervalEndTime"
104const EfmBondingGroupPerformanceMonitoringHistoryDataPart2_ThresholdData12Id = "ThresholdData12Id"
105const EfmBondingGroupPerformanceMonitoringHistoryDataPart2_RxUnicastFrames = "RxUnicastFrames"
106const EfmBondingGroupPerformanceMonitoringHistoryDataPart2_TxUnicastFrames = "TxUnicastFrames"
107const EfmBondingGroupPerformanceMonitoringHistoryDataPart2_RxUnicastBytes = "RxUnicastBytes"
108const EfmBondingGroupPerformanceMonitoringHistoryDataPart2_TxUnicastBytes = "TxUnicastBytes"
109const EfmBondingGroupPerformanceMonitoringHistoryDataPart2_RxBroadcastFrames = "RxBroadcastFrames"
110const EfmBondingGroupPerformanceMonitoringHistoryDataPart2_TxBroadcastFrames = "TxBroadcastFrames"
111const EfmBondingGroupPerformanceMonitoringHistoryDataPart2_RxBroadcastBytes = "RxBroadcastBytes"
112const EfmBondingGroupPerformanceMonitoringHistoryDataPart2_TxBroadcastBytes = "TxBroadcastBytes"
113const EfmBondingGroupPerformanceMonitoringHistoryDataPart2_RxMulticastFrames = "RxMulticastFrames"
114const EfmBondingGroupPerformanceMonitoringHistoryDataPart2_TxMulticastFrames = "TxMulticastFrames"
115const EfmBondingGroupPerformanceMonitoringHistoryDataPart2_RxMulticastBytes = "RxMulticastBytes"
116const EfmBondingGroupPerformanceMonitoringHistoryDataPart2_TxMulticastBytes = "TxMulticastBytes"
117
Matteo Scandolof9d43412021-01-12 11:11:34 -0800118func init() {
119 efmbondinggroupperformancemonitoringhistorydatapart2BME = &ManagedEntityDefinition{
120 Name: "EfmBondingGroupPerformanceMonitoringHistoryDataPart2",
Elia Battiston9bfe1102022-02-03 10:38:03 +0100121 ClassID: EfmBondingGroupPerformanceMonitoringHistoryDataPart2ClassID,
Matteo Scandolof9d43412021-01-12 11:11:34 -0800122 MessageTypes: mapset.NewSetWith(
123 Create,
124 Delete,
125 Get,
126 Set,
Girish Gowdrae2683102021-03-05 08:24:26 -0800127 GetCurrentData,
Matteo Scandolof9d43412021-01-12 11:11:34 -0800128 ),
129 AllowedAttributeMask: 0xfffc,
130 AttributeDefinitions: AttributeDefinitionMap{
Elia Battiston9bfe1102022-02-03 10:38:03 +0100131 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
132 1: ByteField(EfmBondingGroupPerformanceMonitoringHistoryDataPart2_IntervalEndTime, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
133 2: Uint16Field(EfmBondingGroupPerformanceMonitoringHistoryDataPart2_ThresholdData12Id, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
134 3: Uint32Field(EfmBondingGroupPerformanceMonitoringHistoryDataPart2_RxUnicastFrames, CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
135 4: Uint32Field(EfmBondingGroupPerformanceMonitoringHistoryDataPart2_TxUnicastFrames, CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
136 5: Uint64Field(EfmBondingGroupPerformanceMonitoringHistoryDataPart2_RxUnicastBytes, CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
137 6: Uint64Field(EfmBondingGroupPerformanceMonitoringHistoryDataPart2_TxUnicastBytes, CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
138 7: Uint32Field(EfmBondingGroupPerformanceMonitoringHistoryDataPart2_RxBroadcastFrames, CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
139 8: Uint32Field(EfmBondingGroupPerformanceMonitoringHistoryDataPart2_TxBroadcastFrames, CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
140 9: Uint64Field(EfmBondingGroupPerformanceMonitoringHistoryDataPart2_RxBroadcastBytes, CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
141 10: Uint64Field(EfmBondingGroupPerformanceMonitoringHistoryDataPart2_TxBroadcastBytes, CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
142 11: Uint32Field(EfmBondingGroupPerformanceMonitoringHistoryDataPart2_RxMulticastFrames, CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
143 12: Uint32Field(EfmBondingGroupPerformanceMonitoringHistoryDataPart2_TxMulticastFrames, CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
144 13: Uint64Field(EfmBondingGroupPerformanceMonitoringHistoryDataPart2_RxMulticastBytes, CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
145 14: Uint64Field(EfmBondingGroupPerformanceMonitoringHistoryDataPart2_TxMulticastBytes, CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14),
Matteo Scandolof9d43412021-01-12 11:11:34 -0800146 },
147 Access: CreatedByOlt,
148 Support: UnknownSupport,
149 }
150}
151
Andrea Campanella10426e22021-10-15 17:58:04 +0200152// NewEfmBondingGroupPerformanceMonitoringHistoryDataPart2 (class ID 421) creates the basic
Matteo Scandolof9d43412021-01-12 11:11:34 -0800153// Managed Entity definition that is used to validate an ME of this type that
154// is received from or transmitted to the OMCC.
155func NewEfmBondingGroupPerformanceMonitoringHistoryDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
156 return NewManagedEntity(*efmbondinggroupperformancemonitoringhistorydatapart2BME, params...)
157}