blob: 38b2a0e17f363c3cf488cb4d5c358763031fe24e [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 EthernetFrameExtendedPm64BitClassId ClassID = ClassID(426)
25
26var ethernetframeextendedpm64bitBME *ManagedEntityDefinition
27
28// EthernetFrameExtendedPm64Bit (class ID #426)
29// This ME collects some of the PM data at a point where an Ethernet flow can be observed. It is
30// based on the Etherstats group of [IETF RFC 2819] and [IETF RFC 2863]. Instances of this ME are
31// created and deleted by the OLT. References to received frames are to be interpreted as the
32// number of frames entering the monitoring point in the direction specified by the control block.
33//
34// For a complete discussion of generic PM architecture, refer to clause I.4.
35//
36// Attributes
37// Managed Entity Id
38// Managed entity ID: This attribute uniquely identifies each instance of this ME. To facilitate
39// discovery, the identification of instances sequentially starting with 1 is encouraged. (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. If
44// continuous accumulation is enabled in the control block, this attribute is not used and has the
45// fixed value 0. (R) (mandatory) (1 byte)
46//
47// Control Block
48// (R, W, setbycreate) (mandatory) (16 bytes)
49//
50// Drop Events
51// Drop events: The total number of events in which frames were dropped due to a lack of resources.
52// This is not necessarily the number of frames dropped; it is the number of times this event was
53// detected. (R) (mandatory) (4 bytes)
54//
55// Octets
56// Octets: The total number of octets received, including those in bad frames, excluding framing
57// bits, but including FCS. (R) (mandatory) (4 bytes)
58//
59// Frames
60// Frames: The total number of frames received, including bad frames, broadcast frames and
61// multicast frames. (R) (mandatory) (4 bytes)
62//
63// Broadcast Frames
64// Broadcast frames: The total number of received good frames directed to the broadcast address.
65// This does not include multicast frames. (R) (mandatory) (4 bytes)
66//
67// Multicast Frames
68// Multicast frames: The total number of received good frames directed to a multicast address. This
69// does not include broadcast frames. (R) (mandatory) (4 bytes)
70//
71// Crc Errored Frames
72// CRC errored frames: The total number of frames received that had a length (excluding framing
73// bits, but including FCS octets) of between 64 and 1518 octets, inclusive, but had either a bad
74// FCS with an integral number of octets (FCS error) or a bad FCS with a non-integral number of
75// octets (alignment error). (R) (mandatory) (4 bytes)
76//
77// Undersize Frames
78// Undersize frames: The total number of frames received that were less than 64 octets long but
79// were otherwise well formed (excluding framing bits, but including FCS octets). (R) (mandatory)
80// (4 bytes)
81//
82// Oversize Frames
83// Oversize frames: The total number of frames received that were longer than 1518 octets
84// (excluding framing bits, but including FCS octets) and were otherwise well formed. (R)
85// (mandatory) (4 bytes)
86//
87// Frames 64 Octets
88// Frames 64 octets: The total number of received frames (including bad frames) that were 64 octets
89// long, excluding framing bits but including FCS. (R) (mandatory) (4 bytes)
90//
91// Frames 65 To 127 Octets
92// Frames 65 to 127 octets: The total number of received frames (including bad frames) that were
93// 65..127 octets long, excluding framing bits but including FCS. (R) (mandatory) (4 bytes)
94//
95// Frames 128 To 255 Octets
96// Frames 128 to 255 octets: The total number of frames (including bad frames) received that were
97// 128..255 octets long, excluding framing bits but including FCS. (R) (mandatory) (4 bytes)
98//
99// Frames 256 To 511 Octets
100// Frames 256 to 511 octets: The total number of frames (including bad frames) received that were
101// 256..511 octets long, excluding framing bits but including FCS. (R) (mandatory) (4 bytes)
102//
103// Frames 512 To 1 023 Octets
104// Frames 512 to 1 023 octets: The total number of frames (including bad frames) received that were
105// 512..1 023 octets long, excluding framing bits but including FCS. (R) (mandatory) (4 bytes)
106//
107// Frames 1024 To 1518 Octets
108// Frames 1024 to 1518 octets: The total number of frames (including bad frames) received that were
109// 1024..1518 octets long, excluding framing bits but including FCS. (R) (mandatory) (4 bytes)
110//
111type EthernetFrameExtendedPm64Bit struct {
112 ManagedEntityDefinition
113 Attributes AttributeValueMap
114}
115
116func init() {
117 ethernetframeextendedpm64bitBME = &ManagedEntityDefinition{
118 Name: "EthernetFrameExtendedPm64Bit",
119 ClassID: 426,
120 MessageTypes: mapset.NewSetWith(
121 Create,
122 Delete,
123 Get,
124 Set,
125 ),
126 AllowedAttributeMask: 0XFFFF,
127 AttributeDefinitions: AttributeDefinitionMap{
128 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
129 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
130 2: MultiByteField("ControlBlock", 16, nil, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
131 3: Uint64Field("DropEvents", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
132 4: Uint64Field("Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
133 5: Uint64Field("Frames", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
134 6: Uint64Field("BroadcastFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
135 7: Uint64Field("MulticastFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
136 8: Uint64Field("CrcErroredFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
137 9: Uint64Field("UndersizeFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 9),
138 10: Uint64Field("OversizeFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 10),
139 11: Uint64Field("Frames64Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 11),
140 12: Uint64Field("Frames65To127Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 12),
141 13: Uint64Field("Frames128To255Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 13),
142 14: Uint64Field("Frames256To511Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 14),
143 15: Uint64Field("Frames512To1023Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 15),
144 16: Uint64Field("Frames1024To1518Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 16),
145 },
146 }
147}
148
149// NewEthernetFrameExtendedPm64Bit (class ID 426 creates the basic
150// Managed Entity definition that is used to validate an ME of this type that
151// is received from the wire, about to be sent on the wire.
152func NewEthernetFrameExtendedPm64Bit(params ...ParamData) (*ManagedEntity, OmciErrors) {
153 return NewManagedEntity(ethernetframeextendedpm64bitBME, params...)
154}