blob: 11c60f01d27310207ffda2d5bab70cc0bdb2bafd [file] [log] [blame]
Chip Boling6e27b352020-02-14 09:10:01 -06001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Andrea Campanella7167ebb2020-02-24 09:56:38 +01003 * Copyright 2020-present Open Networking Foundation
4
Chip Boling6e27b352020-02-14 09:10:01 -06005 * 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
Andrea Campanella7167ebb2020-02-24 09:56:38 +01008
Chip Boling6e27b352020-02-14 09:10:01 -06009 * http://www.apache.org/licenses/LICENSE-2.0
Andrea Campanella7167ebb2020-02-24 09:56:38 +010010
Chip Boling6e27b352020-02-14 09:10:01 -060011 * 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 */
David K. Bainbridgeadf422d2021-04-09 16:06:41 +000017/*
Chip Boling6e27b352020-02-14 09:10:01 -060018 * 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 */
23
24package generated
25
26import "github.com/deckarep/golang-set"
27
28// TwdmChannelOmciPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
29// Managed entity TWDM channel OMCI performance monitoring history data
30const TwdmChannelOmciPerformanceMonitoringHistoryDataClassID ClassID = ClassID(452)
31
32var twdmchannelomciperformancemonitoringhistorydataBME *ManagedEntityDefinition
33
34// TwdmChannelOmciPerformanceMonitoringHistoryData (class ID #452)
35// This ME collects OMCI-related PM data associated with the slot/circuit pack, hosting one or more
36// ANI-G MEs, for a specific TWDM channel. Instances of this ME are created and deleted by the OLT.
37//
38// The counters maintained by this ME are characterized as optional in Clause 14 of [ITU-
39// T-G.989.3].
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 TWDM channel 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 TWDM channel ME. (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 and 2 MEs
58// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
59//
60// Omci Baseline Message Count
61// OMCI baseline message count: The counter of baseline format OMCI messages directed to the given
62// ONU. (R) (mandatory) (4-byte)
63//
64// Omci Extended Message Count
65// OMCI extended message count: The counter of extended format OMCI messages directed to the given
66// ONU. (R) (mandatory) (4-byte)
67//
68// Omci Mic Error Count
69// OMCI MIC error count: The counter of OMCI messages received with MIC errors. (R) (mandatory)
70// (4-byte)
71//
72type TwdmChannelOmciPerformanceMonitoringHistoryData struct {
73 ManagedEntityDefinition
74 Attributes AttributeValueMap
75}
76
77func init() {
78 twdmchannelomciperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
79 Name: "TwdmChannelOmciPerformanceMonitoringHistoryData",
80 ClassID: 452,
81 MessageTypes: mapset.NewSetWith(
82 Create,
83 Delete,
84 Get,
85 GetCurrentData,
86 Set,
87 ),
88 AllowedAttributeMask: 0xf800,
89 AttributeDefinitions: AttributeDefinitionMap{
90 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
91 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
92 2: Uint16Field("ThresholdData12Id", UnsignedIntegerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
93 3: Uint32Field("OmciBaselineMessageCount", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, false, false, 3),
94 4: Uint32Field("OmciExtendedMessageCount", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, false, false, 4),
95 5: Uint32Field("OmciMicErrorCount", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, false, false, 5),
96 },
97 Access: CreatedByOlt,
98 Support: UnknownSupport,
99 }
100}
101
102// NewTwdmChannelOmciPerformanceMonitoringHistoryData (class ID 452) creates the basic
103// Managed Entity definition that is used to validate an ME of this type that
104// is received from or transmitted to the OMCC.
105func NewTwdmChannelOmciPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
106 return NewManagedEntity(*twdmchannelomciperformancemonitoringhistorydataBME, params...)
107}