blob: 09785322609534bda494cf1caca649c8fe1385dd [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// EthernetPerformanceMonitoringHistoryData2ClassID is the 16-bit ID for the OMCI
26// Managed entity Ethernet performance monitoring history data 2
27const EthernetPerformanceMonitoringHistoryData2ClassID ClassID = ClassID(89)
28
29var ethernetperformancemonitoringhistorydata2BME *ManagedEntityDefinition
30
31// EthernetPerformanceMonitoringHistoryData2 (class ID #89)
32// This ME collects additional PM data for a physical Ethernet interface. Instances of this ME are
33// created and 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 Ethernet PM history data 2 ME is associated with an instance of the PPTP
39// Ethernet UNI.
40//
41// Attributes
42// Managed Entity Id
43// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
44// identical ID, this ME is implicitly linked to an instance of the PPTP Ethernet UNI. (R,
45// setbycreate) (mandatory) (2-bytes)
46//
47// Interval End Time
48// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
49// (mandatory) (1-byte)
50//
51// Threshold Data 1_2 Id
52// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
53// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
54// data 2 ME is optional. (R,-W, setbycreate) (mandatory) (2-bytes)
55//
56// Pppoe Filtered Frame Counter
57// PPPoE filtered frame counter: This attribute counts the number of frames discarded due to PPPoE
58// filtering. (R) (mandatory) (4-bytes)
59//
60type EthernetPerformanceMonitoringHistoryData2 struct {
61 ManagedEntityDefinition
62 Attributes AttributeValueMap
63}
64
65func init() {
66 ethernetperformancemonitoringhistorydata2BME = &ManagedEntityDefinition{
67 Name: "EthernetPerformanceMonitoringHistoryData2",
68 ClassID: 89,
69 MessageTypes: mapset.NewSetWith(
70 Create,
71 Delete,
72 Get,
73 Set,
74 ),
75 AllowedAttributeMask: 0xe000,
76 AttributeDefinitions: AttributeDefinitionMap{
77 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
78 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
79 2: Uint16Field("ThresholdData12Id", PointerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
80 3: Uint32Field("PppoeFilteredFrameCounter", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
81 },
82 Access: CreatedByOlt,
83 Support: UnknownSupport,
84 }
85}
86
87// NewEthernetPerformanceMonitoringHistoryData2 (class ID 89) creates the basic
88// Managed Entity definition that is used to validate an ME of this type that
89// is received from or transmitted to the OMCC.
90func NewEthernetPerformanceMonitoringHistoryData2(params ...ParamData) (*ManagedEntity, OmciErrors) {
91 return NewManagedEntity(*ethernetperformancemonitoringhistorydata2BME, params...)
92}