blob: 060634f570c7d54a2b68f9c7b0be7cfebd16188c [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 EthernetPerformanceMonitoringHistoryData2ClassId ClassID = ClassID(89)
25
26var ethernetperformancemonitoringhistorydata2BME *ManagedEntityDefinition
27
28// EthernetPerformanceMonitoringHistoryData2 (class ID #89)
29// This ME collects additional PM data for a physical Ethernet interface. Instances of this ME are
30// created and 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 Ethernet PM history data 2 ME is associated with an instance of the PPTP
36// Ethernet UNI.
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 PPTP Ethernet UNI. (R,
42// 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// Pppoe Filtered Frame Counter
54// PPPoE filtered frame counter: This attribute counts the number of frames discarded due to PPPoE
55// filtering. (R) (mandatory) (4 bytes)
56//
57type EthernetPerformanceMonitoringHistoryData2 struct {
58 ManagedEntityDefinition
59 Attributes AttributeValueMap
60}
61
62func init() {
63 ethernetperformancemonitoringhistorydata2BME = &ManagedEntityDefinition{
64 Name: "EthernetPerformanceMonitoringHistoryData2",
65 ClassID: 89,
66 MessageTypes: mapset.NewSetWith(
67 Create,
68 Delete,
69 Get,
70 Set,
71 ),
72 AllowedAttributeMask: 0XE000,
73 AttributeDefinitions: AttributeDefinitionMap{
74 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
75 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
76 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
77 3: Uint32Field("PppoeFilteredFrameCounter", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
78 },
79 }
80}
81
82// NewEthernetPerformanceMonitoringHistoryData2 (class ID 89 creates the basic
83// Managed Entity definition that is used to validate an ME of this type that
84// is received from the wire, about to be sent on the wire.
85func NewEthernetPerformanceMonitoringHistoryData2(params ...ParamData) (*ManagedEntity, OmciErrors) {
86 return NewManagedEntity(ethernetperformancemonitoringhistorydata2BME, params...)
87}