blob: 1b0863e0d97f06a3a3582585fd0c55be19957b9c [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// TwdmChannelXgemPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity TWDM channel XGEM performance monitoring history data
27const TwdmChannelXgemPerformanceMonitoringHistoryDataClassID ClassID = ClassID(445)
28
29var twdmchannelxgemperformancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// TwdmChannelXgemPerformanceMonitoringHistoryData (class ID #445)
32// This ME collects certain XGEM-related PM data associated with the slot/circuit pack, hosting one
33// or more ANI-G MEs, for a specific TWDM channel. Instances of this ME are created and deleted by
34// the OLT.
35//
36// For a complete discussion of generic PM architecture, refer to clause I.4.
37//
38// Relationships
39// An instance of this ME is associated with an instance of TWDM 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 TWDM channel ME. (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// Total Transmitted Xgem Frames
56// Total transmitted XGEM frames: The counter aggregated across all XGEM ports of the given ONU.
57// (R) (mandatory) (8-byte)
58//
59// Transmitted Xgem Frames With Lf Bit Not Set
60// Transmitted XGEM frames with LF bit not set: The counter aggregated across all XGEM ports of the
61// given ONU identifies the number of fragmentation operations. (R) (mandatory) (8-byte)
62//
63// Total Received Xgem Frames
64// Total received XGEM frames: The counter aggregated across all XGEM ports of the given ONU. (R)
65// (mandatory) (8-byte)
66//
67// Received Xgem Frames With Xgem Header Hec Errors
68// Received XGEM frames with XGEM header HEC errors: The counter aggregated across all XGEM ports
69// of the given ONU identifies the number of loss XGEM frame delineation events. (R) (mandatory)
70// (8-byte)
71//
72// Fs Words Lost To Xgem Header Hec Errors
73// FS words lost to XGEM header HEC errors: The counter of the FS frame words lost due to XGEM
74// frame header errors that cause loss of XGEM frame delineation. (R) (mandatory) (8-byte)
75//
76// Xgem Encryption Key Errors
77// XGEM encryption key errors: The counter aggregated across all XGEM ports of the given ONU
78// identifies the number of received XGEM frames that have to be discarded because of unknown or
79// invalid encryption key. The number is included into the Total received XGEM frame count above.
80// (R) (mandatory) (8-byte)
81//
82// Total Transmitted Bytes In Non_Idle Xgem Frames
83// Total transmitted bytes in non-idle XGEM frames: The counter aggregated across all XGEM ports of
84// the given. (R) (mandatory) (8-byte)
85//
86// Total Received Bytes In Non_Idle Xgem Frames
87// Total received bytes in non-idle XGEM frames: The counter aggregated across all XGEM ports of
88// the given ONU. (R) (mandatory) (8-byte)
89//
90type TwdmChannelXgemPerformanceMonitoringHistoryData struct {
91 ManagedEntityDefinition
92 Attributes AttributeValueMap
93}
94
95func init() {
96 twdmchannelxgemperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
97 Name: "TwdmChannelXgemPerformanceMonitoringHistoryData",
98 ClassID: 445,
99 MessageTypes: mapset.NewSetWith(
100 Create,
101 Delete,
102 Get,
103 GetCurrentData,
104 Set,
105 ),
106 AllowedAttributeMask: 0xffc0,
107 AttributeDefinitions: AttributeDefinitionMap{
108 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
109 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
110 2: Uint16Field("ThresholdData64BitId", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
111 3: Uint64Field("TotalTransmittedXgemFrames", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
112 4: Uint64Field("TransmittedXgemFramesWithLfBitNotSet", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
113 5: Uint64Field("TotalReceivedXgemFrames", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
114 6: Uint64Field("ReceivedXgemFramesWithXgemHeaderHecErrors", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
115 7: Uint64Field("FsWordsLostToXgemHeaderHecErrors", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
116 8: Uint64Field("XgemEncryptionKeyErrors", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
117 9: Uint64Field("TotalTransmittedBytesInNonIdleXgemFrames", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
118 10: Uint64Field("TotalReceivedBytesInNonIdleXgemFrames", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
119 },
120 Access: CreatedByOlt,
121 Support: UnknownSupport,
122 }
123}
124
125// NewTwdmChannelXgemPerformanceMonitoringHistoryData (class ID 445) creates the basic
126// Managed Entity definition that is used to validate an ME of this type that
127// is received from or transmitted to the OMCC.
128func NewTwdmChannelXgemPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
129 return NewManagedEntity(*twdmchannelxgemperformancemonitoringhistorydataBME, params...)
130}