blob: 44e5d08f1ff8da6d8569fced663b8179f39244e4 [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// EnhancedFecPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity Enhanced FEC performance monitoring history data
27const EnhancedFecPerformanceMonitoringHistoryDataClassID ClassID = ClassID(453)
28
29var enhancedfecperformancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// EnhancedFecPerformanceMonitoringHistoryData (class ID #453)
32// This ME collects PM data associated with PON downstream FEC counters for XGS-PON and subsequent
33// ITU-T PON systems. 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 ANI-G ME or an instance of the TWDM
39// channel ME.
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 ANI-G or a TWDM channel. (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 64 Bit Id
52// Threshold data 64-bit ID: This attribute points to an instance of the threshold data 64-bit ME
53// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
54//
55// Corrected Bytes
56// Corrected bytes: This attribute counts the number of bytes that were corrected by the FEC
57// function. (R) (mandatory) (8-bytes)
58//
59// Corrected Code Words
60// Corrected code words: This attribute counts the code words that were corrected by the FEC
61// function. (R) (mandatory) (8-bytes)
62//
63// Uncorrectable Code Words
64// Uncorrectable code words: This attribute counts errored code words that could not be corrected
65// by the FEC function. (R) (mandatory) (8-bytes)
66//
67// Total Code Words
68// Total code words: This attribute counts the total received code words. (R) (mandatory) (8-bytes)
69//
70// Fec Seconds
71// FEC seconds: This attribute counts seconds during which there was an FEC anomaly. (R)
72// (mandatory) (2-bytes)
73//
74type EnhancedFecPerformanceMonitoringHistoryData struct {
75 ManagedEntityDefinition
76 Attributes AttributeValueMap
77}
78
79func init() {
80 enhancedfecperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
81 Name: "EnhancedFecPerformanceMonitoringHistoryData",
82 ClassID: 453,
83 MessageTypes: mapset.NewSetWith(
84 Create,
85 Delete,
86 Get,
87 Set,
88 ),
89 AllowedAttributeMask: 0xfe00,
90 AttributeDefinitions: AttributeDefinitionMap{
91 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
92 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
93 2: Uint16Field("ThresholdData64BitId", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
94 3: Uint64Field("CorrectedBytes", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
95 4: Uint64Field("CorrectedCodeWords", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
96 5: Uint64Field("UncorrectableCodeWords", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
97 6: Uint64Field("TotalCodeWords", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
98 7: Uint16Field("FecSeconds", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
99 },
100 Access: CreatedByOlt,
101 Support: UnknownSupport,
102 }
103}
104
105// NewEnhancedFecPerformanceMonitoringHistoryData (class ID 453) creates the basic
106// Managed Entity definition that is used to validate an ME of this type that
107// is received from or transmitted to the OMCC.
108func NewEnhancedFecPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
109 return NewManagedEntity(*enhancedfecperformancemonitoringhistorydataBME, params...)
110}