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