blob: 55a24c361c0277d845d92a5374169169dea0fb7c [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Andrea Campanella7167ebb2020-02-24 09:56:38 +01003 * Copyright 2020-present Open Networking Foundation
4
Chip Boling6e27b352020-02-14 09:10:01 -06005 * 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
Andrea Campanella7167ebb2020-02-24 09:56:38 +01008
Chip Boling6e27b352020-02-14 09:10:01 -06009 * http://www.apache.org/licenses/LICENSE-2.0
Andrea Campanella7167ebb2020-02-24 09:56:38 +010010
Chip Boling6e27b352020-02-14 09:10:01 -060011 * 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 */
Chip Boling34ebcb62021-02-02 12:13:58 -060017/*
Chip Boling6e27b352020-02-14 09:10:01 -060018 * 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
Chip Boling610117d2021-09-09 11:24:34 -050030const EfmBondingGroupPerformanceMonitoringHistoryDataClassID = ClassID(420) // 0x01a4
Chip Boling6e27b352020-02-14 09:10:01 -060031
32var efmbondinggroupperformancemonitoringhistorydataBME *ManagedEntityDefinition
33
Chip Boling610117d2021-09-09 11:24:34 -050034// EfmBondingGroupPerformanceMonitoringHistoryData (Class ID: #420 / 0x01a4)
Chip Boling6e27b352020-02-14 09:10:01 -060035// 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
Chip Boling610117d2021-09-09 11:24:34 -050043// 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)
Chip Boling6e27b352020-02-14 09:10:01 -060046//
47// Interval End Time
Chip Boling610117d2021-09-09 11:24:34 -050048// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Chip Boling6e27b352020-02-14 09:10:01 -060049//
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
Chip Boling610117d2021-09-09 11:24:34 -050055// Clause 45.2.3.33 of [IEEE 802.3]. (R) (mandatory) (4-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060056//
57// Rx Lost Fragments
Chip Boling610117d2021-09-09 11:24:34 -050058// Clause 45.2.3.34 of [IEEE 802.3]. (R) (mandatory) (4-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060059//
60// Rx Lost Starts
Chip Boling610117d2021-09-09 11:24:34 -050061// Clause 45.2.3.35 of [IEEE 802.3]. (R) (mandatory) (4-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060062//
63// Rx Lost Ends
Chip Boling610117d2021-09-09 11:24:34 -050064// Clause 45.2.3.36 of [IEEE 802.3]. (R) (mandatory) (4-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060065//
66// Rx Frames
Chip Boling610117d2021-09-09 11:24:34 -050067// Number of Ethernet frames received over this group. (R) (mandatory) (4-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060068//
69// Tx Frames
Chip Boling610117d2021-09-09 11:24:34 -050070// Number of Ethernet frames transmitted over this group. (R) (mandatory) (4-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060071//
72// Rx Bytes
Chip Boling610117d2021-09-09 11:24:34 -050073// Number of bytes contained in the Ethernet frames received over this group. (R) (mandatory)
74// (8-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060075//
76// Tx Bytes
Chip Boling610117d2021-09-09 11:24:34 -050077// Number of bytes contained in the Ethernet frames transmitted over this group. (R) (mandatory)
78// (8-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060079//
80// Tx Discarded Frames
Chip Boling610117d2021-09-09 11:24:34 -050081// Number of Ethernet frames discarded by the group transmit function. (R) (mandatory) (4-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060082//
83// Tx Discarded Bytes
Chip Boling610117d2021-09-09 11:24:34 -050084// Number of bytes contained in the Ethernet frames discarded by the group transmit function. (R)
85// (mandatory) (4-bytes)
Chip Boling6e27b352020-02-14 09:10:01 -060086//
87type EfmBondingGroupPerformanceMonitoringHistoryData struct {
88 ManagedEntityDefinition
89 Attributes AttributeValueMap
90}
91
92func init() {
93 efmbondinggroupperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
94 Name: "EfmBondingGroupPerformanceMonitoringHistoryData",
Chip Boling7a6e8d92021-07-14 15:42:21 -050095 ClassID: 420,
Chip Boling6e27b352020-02-14 09:10:01 -060096 MessageTypes: mapset.NewSetWith(
97 Create,
98 Delete,
99 Get,
100 Set,
Chip Boling2d51f052021-02-09 09:04:15 -0600101 GetCurrentData,
Chip Boling6e27b352020-02-14 09:10:01 -0600102 ),
103 AllowedAttributeMask: 0xfff0,
104 AttributeDefinitions: AttributeDefinitionMap{
105 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
106 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
107 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
108 3: Uint32Field("RxBadFragments", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
109 4: Uint32Field("RxLostFragments", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
110 5: Uint32Field("RxLostStarts", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
111 6: Uint32Field("RxLostEnds", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
112 7: Uint32Field("RxFrames", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
113 8: Uint32Field("TxFrames", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
114 9: Uint64Field("RxBytes", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
115 10: Uint64Field("TxBytes", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
116 11: Uint32Field("TxDiscardedFrames", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
117 12: Uint32Field("TxDiscardedBytes", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
118 },
119 Access: CreatedByOlt,
120 Support: UnknownSupport,
Chip Boling34ebcb62021-02-02 12:13:58 -0600121 Alarms: AlarmMap{
122 0: "Rx bad fragments",
123 1: "Rx lost fragments",
124 2: "Rx lost starts",
125 3: "Rx lost ends",
126 },
Chip Boling6e27b352020-02-14 09:10:01 -0600127 }
128}
129
Chip Boling7a6e8d92021-07-14 15:42:21 -0500130// NewEfmBondingGroupPerformanceMonitoringHistoryData (class ID 420) creates the basic
Chip Boling6e27b352020-02-14 09:10:01 -0600131// Managed Entity definition that is used to validate an ME of this type that
132// is received from or transmitted to the OMCC.
133func NewEfmBondingGroupPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
134 return NewManagedEntity(*efmbondinggroupperformancemonitoringhistorydataBME, params...)
135}