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