blob: cc3dd54f53dcd4e573becbac0f97e913e3a4986c [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 EfmBondingPortPerformanceMonitoringHistoryDataPart2ClassId ClassID = ClassID(425)
25
26var efmbondingportperformancemonitoringhistorydatapart2BME *ManagedEntityDefinition
27
28// EfmBondingPortPerformanceMonitoringHistoryDataPart2 (class ID #425)
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. The two MSBs of
38// the first byte are the bearer channel ID. Excluding the first 2 bits of the first byte, the
39// remaining part of the ME ID is identical to that of this ME's parent PPTP xDSL UNI part 1. (R,
40// setbycreate) (mandatory) (2 bytes)
41//
42// Interval End Time
43// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
44// (mandatory) (1 byte)
45//
46// Threshold Data 1_2 Id
47// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
48// that contain PM threshold values. (R, W, setbycreate) (mandatory) (2 bytes)
49//
50// Rx Unicast Frames
51// Rx unicast frames: Number of unicast Ethernet frames received over this port. (R) (mandatory)
52// (4 bytes)
53//
54// Tx Unicast Frames
55// Tx unicast frames: Number of unicast Ethernet frames transmitted over this port. (R) (mandatory)
56// (4 bytes)
57//
58// Rx Unicast Bytes
59// Rx unicast bytes: Number of bytes contained in the unicast Ethernet frames received over this
60// port. (R) (mandatory) (4 bytes)
61//
62// Tx Unicast Bytes
63// Tx unicast bytes: Number of bytes contained in the unicast Ethernet frames transmitted over this
64// port. (R) (mandatory) (4 bytes)
65//
66// Rx Broadcast Frames
67// Rx broadcast frames: Number of broadcast Ethernet frames received over this port. (R)
68// (mandatory) (4 bytes)
69//
70// Tx Broadcast Frames
71// Tx broadcast frames: Number of broadcast Ethernet frames transmitted over this port. (R)
72// (mandatory) (4 bytes)
73//
74// Rx Broadcast Bytes
75// Rx broadcast bytes: Number of bytes contained in the broadcast Ethernet frames received over
76// this port. (R) (mandatory) (4 bytes)
77//
78// Tx Broadcast Bytes
79// Tx broadcast bytes: Number of bytes contained in the broadcast Ethernet frames transmitted over
80// this port. (R) (mandatory) (4 bytes)
81//
82// Rx Multicast Frames
83// Rx multicast frames: Number of multicast Ethernet frames received over this port. (R)
84// (mandatory) (4 bytes)
85//
86// Tx Multicast Frames
87// Tx multicast frames: Number of multicast Ethernet frames transmitted over this port. (R)
88// (mandatory) (4 bytes)
89//
90// Rx Multicast Bytes
91// Rx multicast bytes: Number of bytes contained in the multicast Ethernet frames received over
92// this port. (R) (mandatory) (4 bytes)
93//
94// Tx Multicast Bytes
95// Tx multicast bytes: Number of bytes contained in the multicast Ethernet frames transmitted over
96// this port. (R) (mandatory) (4 bytes)
97//
98type EfmBondingPortPerformanceMonitoringHistoryDataPart2 struct {
99 ManagedEntityDefinition
100 Attributes AttributeValueMap
101}
102
103func init() {
104 efmbondingportperformancemonitoringhistorydatapart2BME = &ManagedEntityDefinition{
105 Name: "EfmBondingPortPerformanceMonitoringHistoryDataPart2",
106 ClassID: 425,
107 MessageTypes: mapset.NewSetWith(
108 Create,
109 Delete,
110 Get,
111 Set,
112 ),
113 AllowedAttributeMask: 0XFFFC,
114 AttributeDefinitions: AttributeDefinitionMap{
115 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
116 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
117 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
118 3: Uint32Field("RxUnicastFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
119 4: Uint32Field("TxUnicastFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
120 5: Uint32Field("RxUnicastBytes", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
121 6: Uint32Field("TxUnicastBytes", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
122 7: Uint32Field("RxBroadcastFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
123 8: Uint32Field("TxBroadcastFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
124 9: Uint32Field("RxBroadcastBytes", 0, mapset.NewSetWith(Read), false, false, false, false, 9),
125 10: Uint32Field("TxBroadcastBytes", 0, mapset.NewSetWith(Read), false, false, false, false, 10),
126 11: Uint32Field("RxMulticastFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 11),
127 12: Uint32Field("TxMulticastFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 12),
128 13: Uint32Field("RxMulticastBytes", 0, mapset.NewSetWith(Read), false, false, false, false, 13),
129 14: Uint32Field("TxMulticastBytes", 0, mapset.NewSetWith(Read), false, false, false, false, 14),
130 },
131 }
132}
133
134// NewEfmBondingPortPerformanceMonitoringHistoryDataPart2 (class ID 425 creates the basic
135// Managed Entity definition that is used to validate an ME of this type that
136// is received from the wire, about to be sent on the wire.
137func NewEfmBondingPortPerformanceMonitoringHistoryDataPart2(params ...ParamData) (*ManagedEntity, OmciErrors) {
138 return NewManagedEntity(efmbondingportperformancemonitoringhistorydatapart2BME, params...)
139}