blob: 2be87e4fc0df8d4b7bf561a2ffbb1b2073b5db53 [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 TwdmChannelOmciPerformanceMonitoringHistoryDataClassId ClassID = ClassID(452)
25
26var twdmchannelomciperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// TwdmChannelOmciPerformanceMonitoringHistoryData (class ID #452)
29// This ME collects OMCI-related PM data associated with the slot/circuit pack, hosting one or more
30// ANI-G MEs, for a specific TWDM channel. Instances of this ME are created and deleted by the OLT.
31//
32// The counters maintained by this ME are characterized as optional in Clause 14 of
33// [ITU-T G.989.3].
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 TWDM channel ME.
39//
40// Attributes
41// Managed Entity Id
42// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
43// identical ID, this ME is implicitly linked to an instance of the TWDM channel ME. (R,
44// setbycreate) (mandatory) (2 bytes)
45//
46// Interval End Time
47// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
48// (mandatory) (1 byte)
49//
50// Threshold Data 1_2 Id
51// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 and 2 MEs
52// that contains PM threshold values. (R, W, setbycreate) (mandatory) (2 bytes)
53//
54// Omci Baseline Message Count
55// OMCI baseline message count: The counter of baseline format OMCI messages directed to the given
56// ONU. (R) (mandatory) (4 byte)
57//
58// Omci Extended Message Count
59// OMCI extended message count: The counter of extended format OMCI messages directed to the given
60// ONU. (R) (mandatory) (4 byte)
61//
62// Omci Mic Error Count
63// OMCI MIC error count: The counter of OMCI messages received with MIC errors. (R) (mandatory)
64// (4 byte)
65//
66type TwdmChannelOmciPerformanceMonitoringHistoryData struct {
67 ManagedEntityDefinition
68 Attributes AttributeValueMap
69}
70
71func init() {
72 twdmchannelomciperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
73 Name: "TwdmChannelOmciPerformanceMonitoringHistoryData",
74 ClassID: 452,
75 MessageTypes: mapset.NewSetWith(
76 Create,
77 Delete,
78 Get,
79 GetCurrentData,
80 Set,
81 ),
82 AllowedAttributeMask: 0XF800,
83 AttributeDefinitions: AttributeDefinitionMap{
84 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
85 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
86 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
87 3: Uint32Field("OmciBaselineMessageCount", 0, mapset.NewSetWith(Read), false, false, false, false, 3),
88 4: Uint32Field("OmciExtendedMessageCount", 0, mapset.NewSetWith(Read), false, false, false, false, 4),
89 5: Uint32Field("OmciMicErrorCount", 0, mapset.NewSetWith(Read), false, false, false, false, 5),
90 },
91 }
92}
93
94// NewTwdmChannelOmciPerformanceMonitoringHistoryData (class ID 452 creates the basic
95// Managed Entity definition that is used to validate an ME of this type that
96// is received from the wire, about to be sent on the wire.
97func NewTwdmChannelOmciPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
98 return NewManagedEntity(twdmchannelomciperformancemonitoringhistorydataBME, params...)
99}