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