blob: 3088c6e68a946dc9dd92424afe6fa7801d2e48f8 [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// GalEthernetPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity GAL Ethernet performance monitoring history data
27const GalEthernetPerformanceMonitoringHistoryDataClassID ClassID = ClassID(276)
28
29var galethernetperformancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// GalEthernetPerformanceMonitoringHistoryData (class ID #276)
32// This ME collects PM data associated with a GEM IW TP when the GEM layer supports an Ethernet
33// service. Instances of this ME are 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 ME is associated with an instance of the GEM IW TP 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 GEM IW TP. (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 ME that
52// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
53// data 2 ME is optional. (R,-W, setbycreate) (mandatory) (2-bytes)
54//
55// Discarded Frames
56// Discarded frames: This attribute counts the number of downstream GEM frames discarded for any
57// reason [erroneous frame check sequence (FCS), too long length, buffer overflow, etc.]. (R)
58// (mandatory) (4-bytes)
59//
60type GalEthernetPerformanceMonitoringHistoryData struct {
61 ManagedEntityDefinition
62 Attributes AttributeValueMap
63}
64
65func init() {
66 galethernetperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
67 Name: "GalEthernetPerformanceMonitoringHistoryData",
68 ClassID: 276,
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("DiscardedFrames", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
81 },
82 Access: CreatedByOlt,
83 Support: UnknownSupport,
84 }
85}
86
87// NewGalEthernetPerformanceMonitoringHistoryData (class ID 276) 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 NewGalEthernetPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
91 return NewManagedEntity(*galethernetperformancemonitoringhistorydataBME, params...)
92}