blob: eddbf2c240dca56ca2fb19170b837a8232543d7f [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 EfmBondingGroupPerformanceMonitoringHistoryDataPart2ClassId ClassID = ClassID(422)
25
26var efmbondinggroupperformancemonitoringhistorydatapart2BME *ManagedEntityDefinition
27
28// EfmBondingGroupPerformanceMonitoringHistoryDataPart2 (class ID #422)
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 Unicast Frames
50// Rx unicast frames: Number of unicast Ethernet frames received over this group. (R) (mandatory)
51// (4 bytes)
52//
53// Tx Unicast Frames
54// Tx unicast frames: Number of unicast Ethernet frames transmitted over this group. (R)
55// (mandatory) (4 bytes)
56//
57// Rx Unicast Bytes
58// Rx unicast bytes: Number of bytes contained in the unicast Ethernet frames received over this
59// group. (R) (mandatory) (8 bytes)
60//
61// Tx Unicast Bytes
62// Tx unicast bytes: Number of bytes contained in the unicast Ethernet frames transmitted over this
63// group. (R) (mandatory) (8 bytes)
64//
65// Rx Broadcast Frames
66// Rx broadcast frames: Number of broadcast Ethernet frames received over this group. (R)
67// (mandatory) (4 bytes)
68//
69// Tx Broadcast Frames
70// Tx broadcast frames: Number of broadcast Ethernet frames transmitted over this group. (R)
71// (mandatory) (4 bytes)
72//
73// Rx Broadcast Bytes
74// Rx broadcast bytes: Number of bytes contained in the broadcast Ethernet frames received over
75// this group. (R) (mandatory) (8 bytes)
76//
77// Tx Broadcast Bytes
78// Tx broadcast bytes: Number of bytes contained in the broadcast Ethernet frames transmitted over
79// this group. (R) (mandatory) (8 bytes)
80//
81// Rx Multicast Frames
82// Rx multicast frames: Number of multicast Ethernet frames received over this group. (R)
83// (mandatory) (4 bytes)
84//
85// Tx Multicast Frames
86// Tx multicast frames: Number of multicast Ethernet frames transmitted over this group. (R)
87// (mandatory) (4 bytes)
88//
89// Rx Multicast Bytes
90// Rx multicast bytes: Number of bytes contained in the multicast Ethernet frames received over
91// this group. (R) (mandatory) (8 bytes)
92//
93// Tx Multicast Bytes
94// Tx multicast bytes: Number of bytes contained in the multicast Ethernet frames transmitted over
95// this group. (R) (mandatory) (8 bytes)
96//
97type EfmBondingGroupPerformanceMonitoringHistoryDataPart2 struct {
98 ManagedEntityDefinition
99 Attributes AttributeValueMap
100}
101
102func init() {
103 efmbondinggroupperformancemonitoringhistorydatapart2BME = &ManagedEntityDefinition{
104 Name: "EfmBondingGroupPerformanceMonitoringHistoryDataPart2",
105 ClassID: 422,
106 MessageTypes: mapset.NewSetWith(
107 Create,
108 Delete,
109 Get,
110 Set,
111 ),
112 AllowedAttributeMask: 0XFFFC,
113 AttributeDefinitions: AttributeDefinitionMap{
114 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
115 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
116 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
117 3: Uint32Field("RxUnicastFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
118 4: Uint32Field("TxUnicastFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
119 5: Uint64Field("RxUnicastBytes", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
120 6: Uint64Field("TxUnicastBytes", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
121 7: Uint32Field("RxBroadcastFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
122 8: Uint32Field("TxBroadcastFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
123 9: Uint64Field("RxBroadcastBytes", 0, mapset.NewSetWith(Read), false, false, false, false, 9),
124 10: Uint64Field("TxBroadcastBytes", 0, mapset.NewSetWith(Read), false, false, false, false, 10),
125 11: Uint32Field("RxMulticastFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 11),
126 12: Uint32Field("TxMulticastFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 12),
127 13: Uint64Field("RxMulticastBytes", 0, mapset.NewSetWith(Read), false, false, false, false, 13),
128 14: Uint64Field("TxMulticastBytes", 0, mapset.NewSetWith(Read), false, false, false, false, 14),
129 },
130 }
131}
132
133// NewEfmBondingGroupPerformanceMonitoringHistoryDataPart2 (class ID 422 creates the basic
134// Managed Entity definition that is used to validate an ME of this type that
135// is received from the wire, about to be sent on the wire.
136func NewEfmBondingGroupPerformanceMonitoringHistoryDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
137 return NewManagedEntity(efmbondinggroupperformancemonitoringhistorydatapart2BME, params...)
138}