blob: 6c65ece14af3060badfe99e5858fe1beb5ab727d [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 EthernetFramePerformanceMonitoringHistoryDataDownstreamClassId ClassID = ClassID(321)
25
26var ethernetframeperformancemonitoringhistorydatadownstreamBME *ManagedEntityDefinition
27
28// EthernetFramePerformanceMonitoringHistoryDataDownstream (class ID #321)
29// This ME is identical to the Ethernet frame PM history data upstream ME, with the exception that
30// it monitors downstream traffic.
31//
32// Attributes
33// Managed Entity Id
34// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
35// identical ID, this ME is implicitly linked to an instance of a MAC bridge port configuration
36// data. (R, setbycreate) (mandatory) (2 bytes)
37//
38// Interval End Time
39// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
40// (mandatory) (1 byte)
41//
42// Threshold Data 1_2 Id
43// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
44// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
45// data 2 ME is optional. (R, W, setbycreate) (mandatory) (2 bytes)
46//
47// Drop Events
48// Drop events: The total number of events in which packets were dropped due to a lack of
49// resources. This is not necessarily the number of packets dropped; it is the number of times this
50// event was detected. (R) (mandatory) (4 bytes)
51//
52// Octets
53// Octets: The total number of upstream octets received, including those in bad packets, excluding
54// framing bits, but including FCS. (R) (mandatory) (4 bytes)
55//
56// Packets
57// Packets: The total number of upstream packets received, including bad packets, broadcast packets
58// and multicast packets. (R) (mandatory) (4 bytes)
59//
60// Broadcast Packets
61// Broadcast packets: The total number of upstream good packets received that were directed to the
62// broadcast address. This does not include multicast packets. (R) (mandatory) (4 bytes)
63//
64// Multicast Packets
65// Multicast packets: The total number of upstream good packets received that were directed to a
66// multicast address. This does not include broadcast packets. (R) (mandatory) (4 bytes)
67//
68// Crc Errored Packets
69// CRC errored packets: The total number of upstream packets received that had a length (excluding
70// framing bits, but including FCS octets) of between 64 octets and 1518 octets, inclusive, but had
71// either a bad FCS with an integral number of octets (FCS error) or a bad FCS with a non-integral
72// number of octets (alignment error). (R) (mandatory) (4 bytes)
73//
74// Undersize Packets
75// Undersize packets: The total number of upstream packets received that were less than 64 octets
76// long, but were otherwise well formed (excluding framing bits, but including FCS). (R)
77// (mandatory) (4 bytes)
78//
79// Oversize Packets
80// NOTE 2 – If 2 000 byte Ethernet frames are supported, counts in this performance parameter are
81// not necessarily errors.
82//
83// Packets 64 Octets
84// Packets 64 octets: The total number of upstream received packets (including bad packets) that
85// were 64 octets long, excluding framing bits but including FCS. (R) (mandatory) (4 bytes)
86//
87// Packets 65 To 127 Octets
88// Packets 65 to 127 octets: The total number of upstream received packets (including bad packets)
89// that were 65..127 octets long, excluding framing bits but including FCS. (R) (mandatory)
90// (4 bytes)
91//
92// Packets 128 To 255 Octets
93// Packets 128 to 255 octets: The total number of upstream packets (including bad packets) received
94// that were 128..255 octets long, excluding framing bits but including FCS. (R) (mandatory)
95// (4 bytes)
96//
97// Packets 256 To 511 Octets
98// Packets 256 to 511 octets: The total number of upstream packets (including bad packets) received
99// that were 256..511 octets long, excluding framing bits but including FCS. (R) (mandatory)
100// (4 bytes)
101//
102// Packets 512 To 1023 Octets
103// Packets 512 to 1023 octets: The total number of upstream packets (including bad packets)
104// received that were 512..1 023 octets long, excluding framing bits but including FCS. (R)
105// (mandatory) (4 bytes)
106//
107// Packets 1024 To 1518 Octets
108// Packets 1024 to 1518 octets: The total number of upstream packets (including bad packets)
109// received that were 1024..1518 octets long, excluding framing bits, but including FCS. (R)
110// (mandatory) (4 bytes)
111//
112type EthernetFramePerformanceMonitoringHistoryDataDownstream struct {
113 ManagedEntityDefinition
114 Attributes AttributeValueMap
115}
116
117func init() {
118 ethernetframeperformancemonitoringhistorydatadownstreamBME = &ManagedEntityDefinition{
119 Name: "EthernetFramePerformanceMonitoringHistoryDataDownstream",
120 ClassID: 321,
121 MessageTypes: mapset.NewSetWith(
122 Create,
123 Delete,
124 Get,
125 Set,
126 ),
127 AllowedAttributeMask: 0XFFFF,
128 AttributeDefinitions: AttributeDefinitionMap{
129 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
130 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
131 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
132 3: Uint32Field("DropEvents", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
133 4: Uint32Field("Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
134 5: Uint32Field("Packets", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
135 6: Uint32Field("BroadcastPackets", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
136 7: Uint32Field("MulticastPackets", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
137 8: Uint32Field("CrcErroredPackets", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
138 9: Uint32Field("UndersizePackets", 0, mapset.NewSetWith(Read), false, false, false, false, 9),
139 10: Uint32Field("OversizePackets", 0, mapset.NewSetWith(Read), false, false, false, false, 10),
140 11: Uint32Field("Packets64Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 11),
141 12: Uint32Field("Packets65To127Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 12),
142 13: Uint32Field("Packets128To255Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 13),
143 14: Uint32Field("Packets256To511Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 14),
144 15: Uint32Field("Packets512To1023Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 15),
145 16: Uint32Field("Packets1024To1518Octets", 0, mapset.NewSetWith(Read), false, false, false, false, 16),
146 },
147 }
148}
149
150// NewEthernetFramePerformanceMonitoringHistoryDataDownstream (class ID 321 creates the basic
151// Managed Entity definition that is used to validate an ME of this type that
152// is received from the wire, about to be sent on the wire.
153func NewEthernetFramePerformanceMonitoringHistoryDataDownstream(params ...ParamData) (*ManagedEntity, OmciErrors) {
154 return NewManagedEntity(ethernetframeperformancemonitoringhistorydatadownstreamBME, params...)
155}