blob: d6d1903eedc396a716bb01fa74b7ce3da0f6e79c [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// EfmBondingGroupPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity EFM bonding group performance monitoring history data
27const EfmBondingGroupPerformanceMonitoringHistoryDataClassID ClassID = ClassID(421)
28
29var efmbondinggroupperformancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// EfmBondingGroupPerformanceMonitoringHistoryData (class ID #421)
32// This ME collects PM data as seen at the xTU-C. Instances of this ME are created and deleted by
33// the OLT.
34//
35// Relationships
36// An instance of this ME is associated with an xDSL UNI.
37//
38// Attributes
39// Managed Entity Id
40// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
41// identical ID, this ME is implicitly linked to an instance of the EFM bonding group. (R,
42// setbycreate) (mandatory) (2-bytes)
43//
44// Interval End Time
45// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
46// (mandatory) (1-byte)
47//
48// Threshold Data 1_2 Id
49// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
50// that contain PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
51//
52// Rx Bad Fragments
53// Rx bad fragments: Clause 45.2.3.33 of [IEEE 802.3]. (R) (mandatory) (4-bytes)
54//
55// Rx Lost Fragments
56// Rx lost fragments: Clause 45.2.3.34 of [IEEE 802.3]. (R) (mandatory) (4-bytes)
57//
58// Rx Lost Starts
59// Rx lost starts: Clause 45.2.3.35 of [IEEE 802.3]. (R) (mandatory) (4-bytes)
60//
61// Rx Lost Ends
62// Rx lost ends: Clause 45.2.3.36 of [IEEE 802.3]. (R) (mandatory) (4-bytes)
63//
64// Rx Frames
65// Rx frames: Number of Ethernet frames received over this group. (R) (mandatory) (4-bytes)
66//
67// Tx Frames
68// Tx frames: Number of Ethernet frames transmitted over this group. (R) (mandatory) (4-bytes)
69//
70// Rx Bytes
71// Rx bytes: Number of bytes contained in the Ethernet frames received over this group. (R)
72// (mandatory) (8-bytes)
73//
74// Tx Bytes
75// Tx bytes: Number of bytes contained in the Ethernet frames transmitted over this group. (R)
76// (mandatory) (8-bytes)
77//
78// Tx Discarded Frames
79// Tx discarded frames: Number of Ethernet frames discarded by the group transmit function. (R)
80// (mandatory) (4-bytes)
81//
82// Tx Discarded Bytes
83// Tx discarded bytes: Number of bytes contained in the Ethernet frames discarded by the group
84// transmit function. (R) (mandatory) (4-bytes)
85//
86type EfmBondingGroupPerformanceMonitoringHistoryData struct {
87 ManagedEntityDefinition
88 Attributes AttributeValueMap
89}
90
91func init() {
92 efmbondinggroupperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
93 Name: "EfmBondingGroupPerformanceMonitoringHistoryData",
94 ClassID: 421,
95 MessageTypes: mapset.NewSetWith(
96 Create,
97 Delete,
98 Get,
99 Set,
100 ),
101 AllowedAttributeMask: 0xfff0,
102 AttributeDefinitions: AttributeDefinitionMap{
103 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
104 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
105 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
106 3: Uint32Field("RxBadFragments", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
107 4: Uint32Field("RxLostFragments", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
108 5: Uint32Field("RxLostStarts", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
109 6: Uint32Field("RxLostEnds", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
110 7: Uint32Field("RxFrames", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
111 8: Uint32Field("TxFrames", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
112 9: Uint64Field("RxBytes", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
113 10: Uint64Field("TxBytes", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
114 11: Uint32Field("TxDiscardedFrames", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
115 12: Uint32Field("TxDiscardedBytes", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
116 },
117 Access: CreatedByOlt,
118 Support: UnknownSupport,
119 }
120}
121
122// NewEfmBondingGroupPerformanceMonitoringHistoryData (class ID 421) creates the basic
123// Managed Entity definition that is used to validate an ME of this type that
124// is received from or transmitted to the OMCC.
125func NewEfmBondingGroupPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
126 return NewManagedEntity(*efmbondinggroupperformancemonitoringhistorydataBME, params...)
127}