blob: 6765ed7e3cac3f4e6289cbd6e0259ef36fa86d18 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Matteo Scandolof9d43412021-01-12 11:11:34 -08003 * Copyright 2020-present Open Networking Foundation
4
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07005 * 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
Matteo Scandolof9d43412021-01-12 11:11:34 -08008
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07009 * http://www.apache.org/licenses/LICENSE-2.0
Matteo Scandolof9d43412021-01-12 11:11:34 -080010
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070011 * 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 */
Matteo Scandolof9d43412021-01-12 11:11:34 -080017 /*
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070018 * 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 */
Matteo Scandolof9d43412021-01-12 11:11:34 -080023
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070024package generated
25
26import "github.com/deckarep/golang-set"
27
Matteo Scandolof9d43412021-01-12 11:11:34 -080028// TwdmChannelOmciPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
29// Managed entity TWDM channel OMCI performance monitoring history data
30const TwdmChannelOmciPerformanceMonitoringHistoryDataClassID ClassID = ClassID(452)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070031
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//
Matteo Scandolof9d43412021-01-12 11:11:34 -080038// The counters maintained by this ME are characterized as optional in Clause 14 of [ITU-
39// T-G.989.3].
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070040//
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,
Matteo Scandolof9d43412021-01-12 11:11:34 -080050// setbycreate) (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070051//
52// Interval End Time
Matteo Scandolof9d43412021-01-12 11:11:34 -080053// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
54// (mandatory) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070055//
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
Matteo Scandolof9d43412021-01-12 11:11:34 -080058// that contains PM threshold values. (R,-W, setbycreate) (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070059//
60// Omci Baseline Message Count
61// OMCI baseline message count: The counter of baseline format OMCI messages directed to the given
Matteo Scandolof9d43412021-01-12 11:11:34 -080062// ONU. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070063//
64// Omci Extended Message Count
65// OMCI extended message count: The counter of extended format OMCI messages directed to the given
Matteo Scandolof9d43412021-01-12 11:11:34 -080066// ONU. (R) (mandatory) (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070067//
68// Omci Mic Error Count
69// OMCI MIC error count: The counter of OMCI messages received with MIC errors. (R) (mandatory)
Matteo Scandolof9d43412021-01-12 11:11:34 -080070// (4-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070071//
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 ),
Matteo Scandolof9d43412021-01-12 11:11:34 -080088 AllowedAttributeMask: 0xf800,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070089 AttributeDefinitions: AttributeDefinitionMap{
Matteo Scandolof9d43412021-01-12 11:11:34 -080090 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),
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070096 },
Matteo Scandolof9d43412021-01-12 11:11:34 -080097 Access: CreatedByOlt,
98 Support: UnknownSupport,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070099 }
100}
101
Matteo Scandolof9d43412021-01-12 11:11:34 -0800102// NewTwdmChannelOmciPerformanceMonitoringHistoryData (class ID 452) creates the basic
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700103// Managed Entity definition that is used to validate an ME of this type that
Matteo Scandolof9d43412021-01-12 11:11:34 -0800104// is received from or transmitted to the OMCC.
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700105func NewTwdmChannelOmciPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
Matteo Scandolof9d43412021-01-12 11:11:34 -0800106 return NewManagedEntity(*twdmchannelomciperformancemonitoringhistorydataBME, params...)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700107}