blob: b81fba80705015a65c8cebe6f7eb1e677a7c38e7 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
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 */
20package generated
21
22import "github.com/deckarep/golang-set"
23
24const TwdmChannelXgemPerformanceMonitoringHistoryDataClassId ClassID = ClassID(445)
25
26var twdmchannelxgemperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// TwdmChannelXgemPerformanceMonitoringHistoryData (class ID #445)
29// This ME collects certain XGEM-related PM data associated with the slot/circuit pack, hosting one
30// or more ANI-G MEs, for a specific TWDM channel. Instances of this ME are created and deleted by
31// the OLT.
32//
33// For a complete discussion of generic PM architecture, refer to clause I.4.
34//
35// Relationships
36// An instance of this ME is associated with an instance of TWDM channel ME.
37//
38// Attributes
39// Managed Entity Id
40// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
41// identical ID, this ME is implicitly linked to an instance of the TWDM channel ME. (R,
42// setbycreate) (mandatory) (2 bytes)
43//
44// Interval End Time
45// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
46// (mandatory) (1 byte)
47//
48// Threshold Data 64 B It Id
49// Threshold data 64 bit ID: This attribute points to an instance of the threshold data 64 bit ME
50// that contains PM threshold values. (R, W, setbycreate) (mandatory) (2 bytes)
51//
52// Total Transmitted Xgem Frames
53// Total transmitted XGEM frames: The counter aggregated across all XGEM ports of the given ONU.
54// (R) (mandatory) (8 byte)
55//
56// Transmitted Xgem Frames With Lf Bit Not Set
57// Transmitted XGEM frames with LF bit not set: The counter aggregated across all XGEM ports of the
58// given ONU identifies the number of fragmentation operations. (R) (mandatory) (8 byte)
59//
60// Total Received Xgem Frames
61// Total received XGEM frames: The counter aggregated across all XGEM ports of the given ONU. (R)
62// (mandatory) (8 byte)
63//
64// Received Xgem Frames With Xgem Header Hec Errors
65// Received XGEM frames with XGEM header HEC errors: The counter aggregated across all XGEM ports
66// of the given ONU identifies the number of loss XGEM frame delineation events. (R) (mandatory)
67// (8 byte)
68//
69// Fs Words Lost To Xgem Header Hec Errors
70// FS words lost to XGEM header HEC errors: The counter of the FS frame words lost due to XGEM
71// frame header errors that cause loss of XGEM frame delineation. (R) (mandatory) (8 byte)
72//
73// Xgem Encryption Key Errors
74// XGEM encryption key errors: The counter aggregated across all XGEM ports of the given ONU
75// identifies the number of received XGEM frames that have to be discarded because of unknown or
76// invalid encryption key. The number is included into the Total received XGEM frame count above.
77// (R) (mandatory) (8 byte)
78//
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
81// the given. (R) (mandatory) (8 byte)
82//
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
85// the given ONU. (R) (mandatory) (8 byte)
86//
87type TwdmChannelXgemPerformanceMonitoringHistoryData struct {
88 ManagedEntityDefinition
89 Attributes AttributeValueMap
90}
91
92func init() {
93 twdmchannelxgemperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
94 Name: "TwdmChannelXgemPerformanceMonitoringHistoryData",
95 ClassID: 445,
96 MessageTypes: mapset.NewSetWith(
97 Create,
98 Delete,
99 Get,
100 GetCurrentData,
101 Set,
102 ),
103 AllowedAttributeMask: 0XFFC0,
104 AttributeDefinitions: AttributeDefinitionMap{
105 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
106 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
107 2: Uint16Field("ThresholdData64BItId", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
108 3: Uint64Field("TotalTransmittedXgemFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
109 4: Uint64Field("TransmittedXgemFramesWithLfBitNotSet", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
110 5: Uint64Field("TotalReceivedXgemFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
111 6: Uint64Field("ReceivedXgemFramesWithXgemHeaderHecErrors", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
112 7: Uint64Field("FsWordsLostToXgemHeaderHecErrors", 0, mapset.NewSetWith(Read), false, false, false, false, 7),
113 8: Uint64Field("XgemEncryptionKeyErrors", 0, mapset.NewSetWith(Read), false, false, false, false, 8),
114 9: Uint64Field("TotalTransmittedBytesInNonIdleXgemFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 9),
115 10: Uint64Field("TotalReceivedBytesInNonIdleXgemFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 10),
116 },
117 }
118}
119
120// NewTwdmChannelXgemPerformanceMonitoringHistoryData (class ID 445 creates the basic
121// Managed Entity definition that is used to validate an ME of this type that
122// is received from the wire, about to be sent on the wire.
123func NewTwdmChannelXgemPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
124 return NewManagedEntity(twdmchannelxgemperformancemonitoringhistorydataBME, params...)
125}