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