-
Notifications
You must be signed in to change notification settings - Fork 5
/
ethernetframeextendedpm64-bit.go
159 lines (152 loc) · 7.76 KB
/
ethernetframeextendedpm64-bit.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/*
* Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* NOTE: This file was generated, manual edits will be overwritten!
*
* Generated by 'goCodeGenerator.py':
* https://github.com/cboling/OMCI-parser/README.md
*/
package generated
import "github.com/deckarep/golang-set"
// EthernetFrameExtendedPm64BitClassID is the 16-bit ID for the OMCI
// Managed entity Ethernet frame extended PM 64-bit
const EthernetFrameExtendedPm64BitClassID ClassID = ClassID(426)
var ethernetframeextendedpm64bitBME *ManagedEntityDefinition
// EthernetFrameExtendedPm64Bit (class ID #426)
// This ME collects some of the PM data at a point where an Ethernet flow can be observed. It is
// based on the Etherstats group of [IETF RFC 2819] and [IETF RFC 2863]. Instances of this ME are
// created and deleted by the OLT. References to received frames are to be interpreted as the
// number of frames entering the monitoring point in the direction specified by the control block.
//
// For a complete discussion of generic PM architecture, refer to clause I.4.
//
// Attributes
// Managed Entity Id
// Managed entity ID: This attribute uniquely identifies each instance of this ME. To facilitate
// discovery, the identification of instances sequentially starting with 1 is encouraged. (R,
// setbycreate) (mandatory) (2 bytes)
//
// Interval End Time
// Interval end time: This attribute identifies the most recently finished 15-min interval. If
// continuous accumulation is enabled in the control block, this attribute is not used and has the
// fixed value 0. (R) (mandatory) (1 byte)
//
// Control Block
// (R, W, setbycreate) (mandatory) (16 bytes)
//
// Drop Events
// Drop events: The total number of events in which frames were dropped due to a lack of resources.
// This is not necessarily the number of frames dropped; it is the number of times this event was
// detected. (R) (mandatory) (4 bytes)
//
// Octets
// Octets: The total number of octets received, including those in bad frames, excluding framing
// bits, but including FCS. (R) (mandatory) (4 bytes)
//
// Frames
// Frames: The total number of frames received, including bad frames, broadcast frames and
// multicast frames. (R) (mandatory) (4 bytes)
//
// Broadcast Frames
// Broadcast frames: The total number of received good frames directed to the broadcast address.
// This does not include multicast frames. (R) (mandatory) (4 bytes)
//
// Multicast Frames
// Multicast frames: The total number of received good frames directed to a multicast address. This
// does not include broadcast frames. (R) (mandatory) (4 bytes)
//
// Crc Errored Frames
// CRC errored frames: The total number of frames received that had a length (excluding framing
// bits, but including FCS octets) of between 64 and 1518 octets, inclusive, but had either a bad
// FCS with an integral number of octets (FCS error) or a bad FCS with a non-integral number of
// octets (alignment error). (R) (mandatory) (4 bytes)
//
// Undersize Frames
// Undersize frames: The total number of frames received that were less than 64 octets long but
// were otherwise well formed (excluding framing bits, but including FCS octets). (R) (mandatory)
// (4 bytes)
//
// Oversize Frames
// Oversize frames: The total number of frames received that were longer than 1518 octets
// (excluding framing bits, but including FCS octets) and were otherwise well formed. (R)
// (mandatory) (4 bytes)
//
// Frames 64 Octets
// Frames 64 octets: The total number of received frames (including bad frames) that were 64-octets
// long, excluding framing bits but including FCS. (R) (mandatory) (4-bytes)
//
// Frames 65 To 127 Octets
// Frames 65 to 127 octets: The total number of received frames (including bad frames) that were
// 65..127 octets long, excluding framing bits but including FCS. (R) (mandatory) (4 bytes)
//
// Frames 128 To 255 Octets
// Frames 128 to 255 octets: The total number of frames (including bad frames) received that were
// 128..255 octets long, excluding framing bits but including FCS. (R) (mandatory) (4 bytes)
//
// Frames 256 To 511 Octets
// Frames 256 to 511 octets: The total number of frames (including bad frames) received that were
// 256..511 octets long, excluding framing bits but including FCS. (R) (mandatory) (4 bytes)
//
// Frames 512 To 1 023 Octets
// Frames 512 to 1-023 octets: The total number of frames (including bad frames) received that were
// 512..1-023 octets long, excluding framing bits but including FCS. (R) (mandatory) (4 bytes)
//
// Frames 1024 To 1518 Octets
// Frames 1024 to 1518 octets: The total number of frames (including bad frames) received that were
// 1024..1518 octets long, excluding framing bits but including FCS. (R) (mandatory) (4 bytes)
//
type EthernetFrameExtendedPm64Bit struct {
ManagedEntityDefinition
Attributes AttributeValueMap
}
func init() {
ethernetframeextendedpm64bitBME = &ManagedEntityDefinition{
Name: "EthernetFrameExtendedPm64Bit",
ClassID: 426,
MessageTypes: mapset.NewSetWith(
Create,
Delete,
Get,
Set,
),
AllowedAttributeMask: 0xffff,
AttributeDefinitions: AttributeDefinitionMap{
0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
2: MultiByteField("ControlBlock", 16, nil, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
3: Uint64Field("DropEvents", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
4: Uint64Field("Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
5: Uint64Field("Frames", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
6: Uint64Field("BroadcastFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
7: Uint64Field("MulticastFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
8: Uint64Field("CrcErroredFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
9: Uint64Field("UndersizeFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 9),
10: Uint64Field("OversizeFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 10),
11: Uint64Field("Frames64Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 11),
12: Uint64Field("Frames65To127Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 12),
13: Uint64Field("Frames128To255Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 13),
14: Uint64Field("Frames256To511Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 14),
15: Uint64Field("Frames512To1023Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 15),
16: Uint64Field("Frames1024To1518Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 16),
},
Access: UnknownAccess,
Support: UnknownSupport,
}
}
// NewEthernetFrameExtendedPm64Bit (class ID 426) creates the basic
// Managed Entity definition that is used to validate an ME of this type that
// is received from or transmitted to the OMCC.
func NewEthernetFrameExtendedPm64Bit(params ...ParamData) (*ManagedEntity, OmciErrors) {
return NewManagedEntity(*ethernetframeextendedpm64bitBME, params...)
}