blob: 53fd742f0e1e8f20b5029aa5cc9f20b2db798dae [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 MocaEthernetPerformanceMonitoringHistoryDataClassId ClassID = ClassID(163)
25
26var mocaethernetperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// MocaEthernetPerformanceMonitoringHistoryData (class ID #163)
29// This ME collects PM data for an MoCA Ethernet interface. Instances of this ME are created and
30// deleted by the OLT.
31//
32// For a complete discussion of generic PM architecture, refer to clause I.4.
33//
34// Relationships
35// An instance of this ME is associated with an instance of the PPTP MoCA UNI ME.
36//
37// Attributes
38// Managed Entity Id
39// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
40// identical ID, this ME is implicitly linked to an instance of the PPTP MoCA UNI. (R, setbycreate)
41// (mandatory) (2 bytes)
42//
43// Interval End Time
44// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
45// (mandatory) (1 byte)
46//
47// Threshold Data 1_2 Id
48// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
49// that contains PM threshold values. (R, W, setbycreate) (mandatory) (2 bytes)
50//
51// Incoming Unicast Packets
52// Incoming unicast packets: (R) (optional) (4 bytes)
53//
54// Incoming Discarded Packets
55// Incoming discarded packets: (R) (optional) (4 bytes)
56//
57// Incoming Errored Packets
58// Incoming errored packets: (R) (optional) (4 bytes)
59//
60// Incoming Unknown Packets
61// Incoming unknown packets: (R) (optional) (4 bytes)
62//
63// Incoming Multicast Packets
64// Incoming multicast packets: (R) (optional) (4 bytes)
65//
66// Incoming Broadcast Packets
67// Incoming broadcast packets: (R) (optional) (4 bytes)
68//
69// Incoming Octets
70// Incoming octets: (R) (optional) (4 bytes)
71//
72// Outgoing Unicast Packets
73// Outgoing unicast packets: (R) (optional) (4 bytes)
74//
75// Outgoing Discarded Packets
76// Outgoing discarded packets: (R) (optional) (4 bytes)
77//
78// Outgoing Errored Packets
79// Outgoing errored packets: (R) (optional) (4 bytes)
80//
81// Outgoing Unknown Packets
82// Outgoing unknown packets: (R) (optional) (4 bytes)
83//
84// Outgoing Multicast Packets
85// Outgoing multicast packets: (R) (optional) (4 bytes)
86//
87// Outgoing Broadcast Packets
88// Outgoing broadcast packets: (R) (optional) (4 bytes)
89//
90// Outgoing Octets
91// Outgoing octets: (R) (optional) (4 bytes)
92//
93type MocaEthernetPerformanceMonitoringHistoryData struct {
94 ManagedEntityDefinition
95 Attributes AttributeValueMap
96}
97
98func init() {
99 mocaethernetperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
100 Name: "MocaEthernetPerformanceMonitoringHistoryData",
101 ClassID: 163,
102 MessageTypes: mapset.NewSetWith(
103 Create,
104 Delete,
105 Get,
106 Set,
107 ),
108 AllowedAttributeMask: 0XFFFF,
109 AttributeDefinitions: AttributeDefinitionMap{
110 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
111 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
112 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
113 3: Uint32Field("IncomingUnicastPackets", 0, mapset.NewSetWith(Read), false, false, true, false, 3),
114 4: Uint32Field("IncomingDiscardedPackets", 0, mapset.NewSetWith(Read), false, false, true, false, 4),
115 5: Uint32Field("IncomingErroredPackets", 0, mapset.NewSetWith(Read), false, false, true, false, 5),
116 6: Uint32Field("IncomingUnknownPackets", 0, mapset.NewSetWith(Read), false, false, true, false, 6),
117 7: Uint32Field("IncomingMulticastPackets", 0, mapset.NewSetWith(Read), false, false, true, false, 7),
118 8: Uint32Field("IncomingBroadcastPackets", 0, mapset.NewSetWith(Read), false, false, true, false, 8),
119 9: Uint32Field("IncomingOctets", 0, mapset.NewSetWith(Read), false, false, true, false, 9),
120 10: Uint32Field("OutgoingUnicastPackets", 0, mapset.NewSetWith(Read), false, false, true, false, 10),
121 11: Uint32Field("OutgoingDiscardedPackets", 0, mapset.NewSetWith(Read), false, false, true, false, 11),
122 12: Uint32Field("OutgoingErroredPackets", 0, mapset.NewSetWith(Read), false, false, true, false, 12),
123 13: Uint32Field("OutgoingUnknownPackets", 0, mapset.NewSetWith(Read), false, false, true, false, 13),
124 14: Uint32Field("OutgoingMulticastPackets", 0, mapset.NewSetWith(Read), false, false, true, false, 14),
125 15: Uint32Field("OutgoingBroadcastPackets", 0, mapset.NewSetWith(Read), false, false, true, false, 15),
126 16: Uint32Field("OutgoingOctets", 0, mapset.NewSetWith(Read), false, false, true, false, 16),
127 },
128 }
129}
130
131// NewMocaEthernetPerformanceMonitoringHistoryData (class ID 163 creates the basic
132// Managed Entity definition that is used to validate an ME of this type that
133// is received from the wire, about to be sent on the wire.
134func NewMocaEthernetPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
135 return NewManagedEntity(mocaethernetperformancemonitoringhistorydataBME, params...)
136}