blob: 47263dae03bec54ead5097d3d213f1106985f6a2 [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 */
17/*
18 * 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// EfmBondingGroupPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
29// Managed entity EFM bonding group performance monitoring history data
Andrea Campanella10426e22021-10-15 17:58:04 +020030const EfmBondingGroupPerformanceMonitoringHistoryDataClassID = ClassID(420) // 0x01a4
Matteo Scandolof9d43412021-01-12 11:11:34 -080031
32var efmbondinggroupperformancemonitoringhistorydataBME *ManagedEntityDefinition
33
Andrea Campanella10426e22021-10-15 17:58:04 +020034// EfmBondingGroupPerformanceMonitoringHistoryData (Class ID: #420 / 0x01a4)
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 Bad Fragments
Andrea Campanella10426e22021-10-15 17:58:04 +020055// Clause 45.2.3.33 of [IEEE 802.3]. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080056//
57// Rx Lost Fragments
Andrea Campanella10426e22021-10-15 17:58:04 +020058// Clause 45.2.3.34 of [IEEE 802.3]. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080059//
60// Rx Lost Starts
Andrea Campanella10426e22021-10-15 17:58:04 +020061// Clause 45.2.3.35 of [IEEE 802.3]. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080062//
63// Rx Lost Ends
Andrea Campanella10426e22021-10-15 17:58:04 +020064// Clause 45.2.3.36 of [IEEE 802.3]. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080065//
66// Rx Frames
Andrea Campanella10426e22021-10-15 17:58:04 +020067// Number of Ethernet frames received over this group. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080068//
69// Tx Frames
Andrea Campanella10426e22021-10-15 17:58:04 +020070// Number of Ethernet frames transmitted over this group. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080071//
72// Rx Bytes
Andrea Campanella10426e22021-10-15 17:58:04 +020073// Number of bytes contained in the Ethernet frames received over this group. (R) (mandatory)
74// (8-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080075//
76// Tx Bytes
Andrea Campanella10426e22021-10-15 17:58:04 +020077// Number of bytes contained in the Ethernet frames transmitted over this group. (R) (mandatory)
78// (8-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080079//
80// Tx Discarded Frames
Andrea Campanella10426e22021-10-15 17:58:04 +020081// Number of Ethernet frames discarded by the group transmit function. (R) (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080082//
83// Tx Discarded Bytes
Andrea Campanella10426e22021-10-15 17:58:04 +020084// Number of bytes contained in the Ethernet frames discarded by the group transmit function. (R)
85// (mandatory) (4-bytes)
Matteo Scandolof9d43412021-01-12 11:11:34 -080086//
87type EfmBondingGroupPerformanceMonitoringHistoryData struct {
88 ManagedEntityDefinition
89 Attributes AttributeValueMap
90}
91
Elia Battiston9bfe1102022-02-03 10:38:03 +010092// Attribute name constants
93
94const EfmBondingGroupPerformanceMonitoringHistoryData_IntervalEndTime = "IntervalEndTime"
95const EfmBondingGroupPerformanceMonitoringHistoryData_ThresholdData12Id = "ThresholdData12Id"
96const EfmBondingGroupPerformanceMonitoringHistoryData_RxBadFragments = "RxBadFragments"
97const EfmBondingGroupPerformanceMonitoringHistoryData_RxLostFragments = "RxLostFragments"
98const EfmBondingGroupPerformanceMonitoringHistoryData_RxLostStarts = "RxLostStarts"
99const EfmBondingGroupPerformanceMonitoringHistoryData_RxLostEnds = "RxLostEnds"
100const EfmBondingGroupPerformanceMonitoringHistoryData_RxFrames = "RxFrames"
101const EfmBondingGroupPerformanceMonitoringHistoryData_TxFrames = "TxFrames"
102const EfmBondingGroupPerformanceMonitoringHistoryData_RxBytes = "RxBytes"
103const EfmBondingGroupPerformanceMonitoringHistoryData_TxBytes = "TxBytes"
104const EfmBondingGroupPerformanceMonitoringHistoryData_TxDiscardedFrames = "TxDiscardedFrames"
105const EfmBondingGroupPerformanceMonitoringHistoryData_TxDiscardedBytes = "TxDiscardedBytes"
106
Matteo Scandolof9d43412021-01-12 11:11:34 -0800107func init() {
108 efmbondinggroupperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
109 Name: "EfmBondingGroupPerformanceMonitoringHistoryData",
Elia Battiston9bfe1102022-02-03 10:38:03 +0100110 ClassID: EfmBondingGroupPerformanceMonitoringHistoryDataClassID,
Matteo Scandolof9d43412021-01-12 11:11:34 -0800111 MessageTypes: mapset.NewSetWith(
112 Create,
113 Delete,
114 Get,
115 Set,
Girish Gowdrae2683102021-03-05 08:24:26 -0800116 GetCurrentData,
Matteo Scandolof9d43412021-01-12 11:11:34 -0800117 ),
118 AllowedAttributeMask: 0xfff0,
119 AttributeDefinitions: AttributeDefinitionMap{
Elia Battiston9bfe1102022-02-03 10:38:03 +0100120 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
121 1: ByteField(EfmBondingGroupPerformanceMonitoringHistoryData_IntervalEndTime, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
122 2: Uint16Field(EfmBondingGroupPerformanceMonitoringHistoryData_ThresholdData12Id, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
123 3: Uint32Field(EfmBondingGroupPerformanceMonitoringHistoryData_RxBadFragments, CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
124 4: Uint32Field(EfmBondingGroupPerformanceMonitoringHistoryData_RxLostFragments, CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
125 5: Uint32Field(EfmBondingGroupPerformanceMonitoringHistoryData_RxLostStarts, CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
126 6: Uint32Field(EfmBondingGroupPerformanceMonitoringHistoryData_RxLostEnds, CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
127 7: Uint32Field(EfmBondingGroupPerformanceMonitoringHistoryData_RxFrames, CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
128 8: Uint32Field(EfmBondingGroupPerformanceMonitoringHistoryData_TxFrames, CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
129 9: Uint64Field(EfmBondingGroupPerformanceMonitoringHistoryData_RxBytes, CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
130 10: Uint64Field(EfmBondingGroupPerformanceMonitoringHistoryData_TxBytes, CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
131 11: Uint32Field(EfmBondingGroupPerformanceMonitoringHistoryData_TxDiscardedFrames, CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
132 12: Uint32Field(EfmBondingGroupPerformanceMonitoringHistoryData_TxDiscardedBytes, CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
Matteo Scandolof9d43412021-01-12 11:11:34 -0800133 },
134 Access: CreatedByOlt,
135 Support: UnknownSupport,
136 Alarms: AlarmMap{
137 0: "Rx bad fragments",
138 1: "Rx lost fragments",
139 2: "Rx lost starts",
140 3: "Rx lost ends",
141 },
142 }
143}
144
Andrea Campanella10426e22021-10-15 17:58:04 +0200145// NewEfmBondingGroupPerformanceMonitoringHistoryData (class ID 420) creates the basic
Matteo Scandolof9d43412021-01-12 11:11:34 -0800146// Managed Entity definition that is used to validate an ME of this type that
147// is received from or transmitted to the OMCC.
148func NewEfmBondingGroupPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
149 return NewManagedEntity(*efmbondinggroupperformancemonitoringhistorydataBME, params...)
150}