blob: d1f43e8bf50daf4b382a9d912950ad2716a07ca3 [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 MacBridgePortPerformanceMonitoringHistoryDataClassId ClassID = ClassID(52)
25
26var macbridgeportperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// MacBridgePortPerformanceMonitoringHistoryData (class ID #52)
29// This ME collects PM data associated with a MAC bridge port. 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 a MAC bridge port configuration data
36// ME.
37//
38// Attributes
39// Managed Entity Id
40// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
41// identical ID, this ME is implicitly linked to an instance of the MAC bridge port configuration
42// data ME. (R, setbycreate) (mandatory) (2 bytes)
43//
44// Interval End Time
45// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
46// (mandatory) (1 byte)
47//
48// Threshold Data 1_2 Id
49// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
50// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
51// data 2 ME is optional. (R, W, setbycreate) (mandatory) (2 bytes)
52//
53// Forwarded Frame Counter
54// Forwarded frame counter: This attribute counts frames transmitted successfully on this port. (R)
55// (mandatory) (4 bytes)
56//
57// Delay Exceeded Discard Counter
58// Delay exceeded discard counter: This attribute counts frames discarded on this port because
59// transmission was delayed. (R) (mandatory) (4 bytes)
60//
61// Maximum Transmission U Nit Mtu Exceeded Discard Counter
62// Maximum transmission unit (MTU) exceeded discard counter: This attribute counts frames discarded
63// on this port because the MTU was exceeded. (R) (mandatory) (4 bytes)
64//
65// Received Frame Counter
66// Received frame counter: This attribute counts frames received on this port. (R) (mandatory)
67// (4 bytes)
68//
69// Received And Discarded Counter
70// Received and discarded counter: This attribute counts frames received on this port that were
71// discarded due to errors. (R) (mandatory) (4 bytes)
72//
73type MacBridgePortPerformanceMonitoringHistoryData struct {
74 ManagedEntityDefinition
75 Attributes AttributeValueMap
76}
77
78func init() {
79 macbridgeportperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
80 Name: "MacBridgePortPerformanceMonitoringHistoryData",
81 ClassID: 52,
82 MessageTypes: mapset.NewSetWith(
83 Create,
84 Delete,
85 Get,
86 Set,
87 ),
88 AllowedAttributeMask: 0XFE00,
89 AttributeDefinitions: AttributeDefinitionMap{
90 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
91 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
92 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
93 3: Uint32Field("ForwardedFrameCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
94 4: Uint32Field("DelayExceededDiscardCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
95 5: Uint32Field("MaximumTransmissionUNitMtuExceededDiscardCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
96 6: Uint32Field("ReceivedFrameCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
97 7: Uint32Field("ReceivedAndDiscardedCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
98 },
99 }
100}
101
102// NewMacBridgePortPerformanceMonitoringHistoryData (class ID 52 creates the basic
103// Managed Entity definition that is used to validate an ME of this type that
104// is received from the wire, about to be sent on the wire.
105func NewMacBridgePortPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
106 return NewManagedEntity(macbridgeportperformancemonitoringhistorydataBME, params...)
107}