blob: 8e21ecff100f1082cdec0611f8c33e328721146f [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Matteo Scandolof9d43412021-01-12 11:11:34 -08003 * Copyright 2020-present Open Networking Foundation
Elia Battiston9bfe1102022-02-03 10:38:03 +01004 *
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07005 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
Elia Battiston9bfe1102022-02-03 10:38:03 +01008 *
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07009 * http://www.apache.org/licenses/LICENSE-2.0
Elia Battiston9bfe1102022-02-03 10:38:03 +010010 *
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070011 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
Girish Gowdra161d27a2021-05-05 12:01:44 -070017/*
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070018 * NOTE: This file was generated, manual edits will be overwritten!
19 *
20 * Generated by 'goCodeGenerator.py':
21 * https://github.com/cboling/OMCI-parser/README.md
22 */
Matteo Scandolof9d43412021-01-12 11:11:34 -080023
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070024package generated
25
26import "github.com/deckarep/golang-set"
27
Matteo Scandolof9d43412021-01-12 11:11:34 -080028// TwdmChannelXgemPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
29// Managed entity TWDM channel XGEM performance monitoring history data
Andrea Campanella10426e22021-10-15 17:58:04 +020030const TwdmChannelXgemPerformanceMonitoringHistoryDataClassID = ClassID(445) // 0x01bd
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070031
32var twdmchannelxgemperformancemonitoringhistorydataBME *ManagedEntityDefinition
33
Andrea Campanella10426e22021-10-15 17:58:04 +020034// TwdmChannelXgemPerformanceMonitoringHistoryData (Class ID: #445 / 0x01bd)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070035// This ME collects certain XGEM-related PM data associated with the slot/circuit pack, hosting one
36// or more ANI-G MEs, for a specific TWDM channel. Instances of this ME are created and deleted by
37// the OLT.
38//
39// For a complete discussion of generic PM architecture, refer to clause I.4.
40//
41// Relationships
42// An instance of this ME is associated with an instance of TWDM channel ME.
43//
44// Attributes
45// Managed Entity Id
Andrea Campanella10426e22021-10-15 17:58:04 +020046// This attribute uniquely identifies each instance of this ME. Through an identical ID, this ME is
47// implicitly linked to an instance of the TWDM channel ME. (R, setbycreate) (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070048//
49// Interval End Time
Andrea Campanella10426e22021-10-15 17:58:04 +020050// This attribute identifies the most recently finished 15-min interval. (R) (mandatory) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070051//
Matteo Scandolof9d43412021-01-12 11:11:34 -080052// Threshold Data 64 Bit Id
53// Threshold data 64-bit ID: This attribute points to an instance of the threshold data 64-bit ME
54// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070055//
56// Total Transmitted Xgem Frames
Andrea Campanella10426e22021-10-15 17:58:04 +020057// The counter aggregated across all XGEM ports of the given ONU. (R) (mandatory) (8-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070058//
59// Transmitted Xgem Frames With Lf Bit Not Set
Andrea Campanella10426e22021-10-15 17:58:04 +020060// The counter aggregated across all XGEM ports of the given ONU identifies the number of
61// fragmentation operations. (R) (mandatory) (8-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070062//
63// Total Received Xgem Frames
Andrea Campanella10426e22021-10-15 17:58:04 +020064// The counter aggregated across all XGEM ports of the given ONU. (R) (mandatory) (8-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070065//
66// Received Xgem Frames With Xgem Header Hec Errors
Andrea Campanella10426e22021-10-15 17:58:04 +020067// The counter aggregated across all XGEM ports of the given ONU identifies the number of loss XGEM
68// frame delineation events. (R) (mandatory) (8-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070069//
70// Fs Words Lost To Xgem Header Hec Errors
Andrea Campanella10426e22021-10-15 17:58:04 +020071// The counter of the FS frame words lost due to XGEM frame header errors that cause loss of XGEM
72// frame delineation. (R) (mandatory) (8-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070073//
74// Xgem Encryption Key Errors
Andrea Campanella10426e22021-10-15 17:58:04 +020075// The counter aggregated across all XGEM ports of the given ONU identifies the number of received
76// XGEM frames that have to be discarded because of unknown or invalid encryption key. The number
77// is included into the Total received XGEM frame count above. (R) (mandatory) (8-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070078//
79// Total Transmitted Bytes In Non_Idle Xgem Frames
80// Total transmitted bytes in non-idle XGEM frames: The counter aggregated across all XGEM ports of
Matteo Scandolof9d43412021-01-12 11:11:34 -080081// the given. (R) (mandatory) (8-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070082//
83// Total Received Bytes In Non_Idle Xgem Frames
84// Total received bytes in non-idle XGEM frames: The counter aggregated across all XGEM ports of
Matteo Scandolof9d43412021-01-12 11:11:34 -080085// the given ONU. (R) (mandatory) (8-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070086//
87type TwdmChannelXgemPerformanceMonitoringHistoryData struct {
88 ManagedEntityDefinition
89 Attributes AttributeValueMap
90}
91
Elia Battiston9bfe1102022-02-03 10:38:03 +010092// Attribute name constants
93
94const TwdmChannelXgemPerformanceMonitoringHistoryData_IntervalEndTime = "IntervalEndTime"
95const TwdmChannelXgemPerformanceMonitoringHistoryData_ThresholdData64BitId = "ThresholdData64BitId"
96const TwdmChannelXgemPerformanceMonitoringHistoryData_TotalTransmittedXgemFrames = "TotalTransmittedXgemFrames"
97const TwdmChannelXgemPerformanceMonitoringHistoryData_TransmittedXgemFramesWithLfBitNotSet = "TransmittedXgemFramesWithLfBitNotSet"
98const TwdmChannelXgemPerformanceMonitoringHistoryData_TotalReceivedXgemFrames = "TotalReceivedXgemFrames"
99const TwdmChannelXgemPerformanceMonitoringHistoryData_ReceivedXgemFramesWithXgemHeaderHecErrors = "ReceivedXgemFramesWithXgemHeaderHecErrors"
100const TwdmChannelXgemPerformanceMonitoringHistoryData_FsWordsLostToXgemHeaderHecErrors = "FsWordsLostToXgemHeaderHecErrors"
101const TwdmChannelXgemPerformanceMonitoringHistoryData_XgemEncryptionKeyErrors = "XgemEncryptionKeyErrors"
102const TwdmChannelXgemPerformanceMonitoringHistoryData_TotalTransmittedBytesInNonIdleXgemFrames = "TotalTransmittedBytesInNonIdleXgemFrames"
103const TwdmChannelXgemPerformanceMonitoringHistoryData_TotalReceivedBytesInNonIdleXgemFrames = "TotalReceivedBytesInNonIdleXgemFrames"
104
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700105func init() {
106 twdmchannelxgemperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
107 Name: "TwdmChannelXgemPerformanceMonitoringHistoryData",
Elia Battiston9bfe1102022-02-03 10:38:03 +0100108 ClassID: TwdmChannelXgemPerformanceMonitoringHistoryDataClassID,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700109 MessageTypes: mapset.NewSetWith(
110 Create,
111 Delete,
112 Get,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700113 Set,
Andrea Campanella10426e22021-10-15 17:58:04 +0200114 GetCurrentData,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700115 ),
Matteo Scandolof9d43412021-01-12 11:11:34 -0800116 AllowedAttributeMask: 0xffc0,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700117 AttributeDefinitions: AttributeDefinitionMap{
Elia Battiston9bfe1102022-02-03 10:38:03 +0100118 0: Uint16Field(ManagedEntityID, PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
119 1: ByteField(TwdmChannelXgemPerformanceMonitoringHistoryData_IntervalEndTime, UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
120 2: Uint16Field(TwdmChannelXgemPerformanceMonitoringHistoryData_ThresholdData64BitId, UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
121 3: Uint64Field(TwdmChannelXgemPerformanceMonitoringHistoryData_TotalTransmittedXgemFrames, CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
122 4: Uint64Field(TwdmChannelXgemPerformanceMonitoringHistoryData_TransmittedXgemFramesWithLfBitNotSet, CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
123 5: Uint64Field(TwdmChannelXgemPerformanceMonitoringHistoryData_TotalReceivedXgemFrames, CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
124 6: Uint64Field(TwdmChannelXgemPerformanceMonitoringHistoryData_ReceivedXgemFramesWithXgemHeaderHecErrors, CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
125 7: Uint64Field(TwdmChannelXgemPerformanceMonitoringHistoryData_FsWordsLostToXgemHeaderHecErrors, CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, false, false, 7),
126 8: Uint64Field(TwdmChannelXgemPerformanceMonitoringHistoryData_XgemEncryptionKeyErrors, CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, false, false, 8),
127 9: Uint64Field(TwdmChannelXgemPerformanceMonitoringHistoryData_TotalTransmittedBytesInNonIdleXgemFrames, CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, false, false, 9),
128 10: Uint64Field(TwdmChannelXgemPerformanceMonitoringHistoryData_TotalReceivedBytesInNonIdleXgemFrames, CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, false, false, 10),
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700129 },
Matteo Scandolof9d43412021-01-12 11:11:34 -0800130 Access: CreatedByOlt,
131 Support: UnknownSupport,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700132 }
133}
134
Matteo Scandolof9d43412021-01-12 11:11:34 -0800135// NewTwdmChannelXgemPerformanceMonitoringHistoryData (class ID 445) creates the basic
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700136// Managed Entity definition that is used to validate an ME of this type that
Matteo Scandolof9d43412021-01-12 11:11:34 -0800137// is received from or transmitted to the OMCC.
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700138func NewTwdmChannelXgemPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
Matteo Scandolof9d43412021-01-12 11:11:34 -0800139 return NewManagedEntity(*twdmchannelxgemperformancemonitoringhistorydataBME, params...)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700140}