blob: 4f131b2ece924e95247d00efc6c75123cb91e0ec [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// EfmBondingGroupPerformanceMonitoringHistoryDataPart2ClassID is the 16-bit ID for the OMCI
26// Managed entity EFM bonding group performance monitoring history data part 2
27const EfmBondingGroupPerformanceMonitoringHistoryDataPart2ClassID ClassID = ClassID(422)
28
29var efmbondinggroupperformancemonitoringhistorydatapart2BME *ManagedEntityDefinition
30
31// EfmBondingGroupPerformanceMonitoringHistoryDataPart2 (class ID #422)
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 Unicast Frames
53// Rx unicast frames: Number of unicast Ethernet frames received over this group. (R) (mandatory)
54// (4-bytes)
55//
56// Tx Unicast Frames
57// Tx unicast frames: Number of unicast Ethernet frames transmitted over this group. (R)
58// (mandatory) (4-bytes)
59//
60// Rx Unicast Bytes
61// Rx unicast bytes: Number of bytes contained in the unicast Ethernet frames received over this
62// group. (R) (mandatory) (8-bytes)
63//
64// Tx Unicast Bytes
65// Tx unicast bytes: Number of bytes contained in the unicast Ethernet frames transmitted over this
66// group. (R) (mandatory) (8-bytes)
67//
68// Rx Broadcast Frames
69// Rx broadcast frames: Number of broadcast Ethernet frames received over this group. (R)
70// (mandatory) (4-bytes)
71//
72// Tx Broadcast Frames
73// Tx broadcast frames: Number of broadcast Ethernet frames transmitted over this group. (R)
74// (mandatory) (4-bytes)
75//
76// Rx Broadcast Bytes
77// Rx broadcast bytes: Number of bytes contained in the broadcast Ethernet frames received over
78// this group. (R) (mandatory) (8-bytes)
79//
80// Tx Broadcast Bytes
81// Tx broadcast bytes: Number of bytes contained in the broadcast Ethernet frames transmitted over
82// this group. (R) (mandatory) (8-bytes)
83//
84// Rx Multicast Frames
85// Rx multicast frames: Number of multicast Ethernet frames received over this group. (R)
86// (mandatory) (4-bytes)
87//
88// Tx Multicast Frames
89// Tx multicast frames: Number of multicast Ethernet frames transmitted over this group. (R)
90// (mandatory) (4-bytes)
91//
92// Rx Multicast Bytes
93// Rx multicast bytes: Number of bytes contained in the multicast Ethernet frames received over
94// this group. (R) (mandatory) (8-bytes)
95//
96// Tx Multicast Bytes
97// Tx multicast bytes: Number of bytes contained in the multicast Ethernet frames transmitted over
98// this group. (R) (mandatory) (8-bytes)
99//
100type EfmBondingGroupPerformanceMonitoringHistoryDataPart2 struct {
101 ManagedEntityDefinition
102 Attributes AttributeValueMap
103}
104
105func init() {
106 efmbondinggroupperformancemonitoringhistorydatapart2BME = &ManagedEntityDefinition{
107 Name: "EfmBondingGroupPerformanceMonitoringHistoryDataPart2",
108 ClassID: 422,
109 MessageTypes: mapset.NewSetWith(
110 Create,
111 Delete,
112 Get,
113 Set,
114 ),
115 AllowedAttributeMask: 0xfffc,
116 AttributeDefinitions: AttributeDefinitionMap{
117 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
118 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
119 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
120 3: Uint32Field("RxUnicastFrames", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
121 4: Uint32Field("TxUnicastFrames", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
122 5: Uint64Field("RxUnicastBytes", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
123 6: Uint64Field("TxUnicastBytes", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
124 7: Uint32Field("RxBroadcastFrames", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
125 8: Uint32Field("TxBroadcastFrames", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
126 9: Uint64Field("RxBroadcastBytes", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
127 10: Uint64Field("TxBroadcastBytes", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
128 11: Uint32Field("RxMulticastFrames", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, false, false, 11),
129 12: Uint32Field("TxMulticastFrames", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, false, false, 12),
130 13: Uint64Field("RxMulticastBytes", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, false, false, 13),
131 14: Uint64Field("TxMulticastBytes", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, false, false, 14),
132 },
133 Access: CreatedByOlt,
134 Support: UnknownSupport,
135 }
136}
137
138// NewEfmBondingGroupPerformanceMonitoringHistoryDataPart2 (class ID 422) creates the basic
139// Managed Entity definition that is used to validate an ME of this type that
140// is received from or transmitted to the OMCC.
141func NewEfmBondingGroupPerformanceMonitoringHistoryDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
142 return NewManagedEntity(*efmbondinggroupperformancemonitoringhistorydatapart2BME, params...)
143}