blob: 233afec6fef0995dabdf09f4122d7fcd53906a0b [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 GemPortNetworkCtpPerformanceMonitoringHistoryDataClassId ClassID = ClassID(341)
25
26var gemportnetworkctpperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// GemPortNetworkCtpPerformanceMonitoringHistoryData (class ID #341)
29// This ME collects GEM frame PM data associated with a GEM port network CTP. Instances of this ME
30// are created and deleted by the OLT.
31//
32// NOTE 1 – One might expect to find some form of impaired or discarded frame count associated with
33// a GEM port. However, the only impairment that might be detected at the GEM frame level would be
34// a corrupted GEM frame header. In this case, no part of the header could be considered reliable
35// including the port ID. For this reason, there is no impaired or discarded frame count in this
36// ME.
37//
38// NOTE 2 – This ME replaces the GEM port performance history data ME and is preferred for new
39// implementations.
40//
41// For a complete discussion of generic PM architecture, refer to clause I.4.
42//
43// Relationships
44// An instance of this ME is associated with an instance of the GEM port network CTP ME.
45//
46// Attributes
47// Managed Entity Id
48// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
49// identical ID, this ME is implicitly linked to an instance of the GEM port network CTP. (R,
50// setbycreate) (mandatory) (2 bytes)
51//
52// Interval End Time
53// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
54// (mandatory) (1 byte)
55//
56// Threshold Data 1_2 Id
57// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
58// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
59// data 2 ME is optional. (R, W, setbycreate) (mandatory) (2 bytes)
60//
61// Transmitted Gem Frames
62// Transmitted GEM frames: This attribute counts GEM frames transmitted on the monitored GEM port.
63// (R) (mandatory) (4 bytes)
64//
65// Received Gem Frames
66// Received GEM frames: This attribute counts GEM frames received correctly on the monitored GEM
67// port. A correctly received GEM frame is one that does not contain uncorrectable errors and has a
68// valid header error check (HEC). (R) (mandatory) (4 bytes)
69//
70// Received Payload Bytes
71// Received payload bytes: This attribute counts user payload bytes received on the monitored GEM
72// port. (R) (mandatory) (8 bytes)
73//
74// Transmitted Payload Bytes
75// Transmitted payload bytes: This attribute counts user payload bytes transmitted on the monitored
76// GEM port. (R) (mandatory) (8 bytes)
77//
78// Encryption Key Errors
79// NOTE 4 – GEM PM counts each non-idle GEM frame, whether it contains an entire user frame or only
80// a fragment of a user frame.
81//
82type GemPortNetworkCtpPerformanceMonitoringHistoryData struct {
83 ManagedEntityDefinition
84 Attributes AttributeValueMap
85}
86
87func init() {
88 gemportnetworkctpperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
89 Name: "GemPortNetworkCtpPerformanceMonitoringHistoryData",
90 ClassID: 341,
91 MessageTypes: mapset.NewSetWith(
92 Create,
93 Delete,
94 Get,
95 Set,
96 ),
97 AllowedAttributeMask: 0XFE00,
98 AttributeDefinitions: AttributeDefinitionMap{
99 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
100 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
101 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
102 3: Uint32Field("TransmittedGemFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
103 4: Uint32Field("ReceivedGemFrames", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
104 5: Uint64Field("ReceivedPayloadBytes", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
105 6: Uint64Field("TransmittedPayloadBytes", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
106 7: Uint32Field("EncryptionKeyErrors", 0, mapset.NewSetWith(Read), false, false, true, false, 7),
107 },
108 }
109}
110
111// NewGemPortNetworkCtpPerformanceMonitoringHistoryData (class ID 341 creates the basic
112// Managed Entity definition that is used to validate an ME of this type that
113// is received from the wire, about to be sent on the wire.
114func NewGemPortNetworkCtpPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
115 return NewManagedEntity(gemportnetworkctpperformancemonitoringhistorydataBME, params...)
116}