blob: 43dbb8de3a1a5853eeb8316061038f7113f4865b [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 */
Andrea Campanella7167ebb2020-02-24 09:56:38 +010017 /*
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// XgPonDownstreamManagementPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
29// Managed entity XG-PON downstream management performance monitoring history data
30const XgPonDownstreamManagementPerformanceMonitoringHistoryDataClassID ClassID = ClassID(345)
31
32var xgpondownstreammanagementperformancemonitoringhistorydataBME *ManagedEntityDefinition
33
34// XgPonDownstreamManagementPerformanceMonitoringHistoryData (class ID #345)
35// This ME collects PM data associated with the XG-PON TC layer. It collects counters associated
36// with downstream PLOAM and OMCI messages.
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 ANI-G.
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 ANI-G. (R, set-by-create)
47// (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 ME that
55// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
56// data 2 ME is optional. (R,-W, set-by-create) (mandatory) (2-bytes)
57//
58// Ploam Message Integrity Check Mic Error Count
59// PLOAM message integrity check (MIC) error count: This attribute counts MIC errors detected in
60// downstream PLOAM messages, either directed to this ONU or broadcast to all ONUs. (R) (optional)
61// (4-bytes)
62//
63// Downstream Ploam Messages Count
64// Downstream PLOAM messages count: This attribute counts PLOAM messages received, either directed
65// to this ONU or broadcast to all ONUs. (R) (optional) (4-bytes)
66//
67// Profile Messages Received
68// Profile messages received: This attribute counts the number of profile messages received, either
69// directed to this ONU or broadcast to all ONUs. In [ITU-T G.9807.1], this attribute is used for
70// received burst_profile message count. (R) (optional) (4-bytes)
71//
72// Ranging_Time Messages Received
73// Ranging_time messages received: This attribute counts the number of ranging_time messages
74// received, either directed to this ONU or broadcast to all ONUs. (R) (mandatory) (4-bytes)
75//
76// Deactivate_Onu_Id Messages Received
77// Deactivate_ONU-ID messages received: This attribute counts the number of deactivate_ONU-ID
78// messages received, either directed to this ONU or broadcast to all ONUs. Deactivate_ONU-ID
79// messages do not reset this counter. (R) (optional) (4-bytes)
80//
81// Disable_Serial_Number Messages Received
82// Disable_serial_number messages received: This attribute counts the number of
83// disable_serial_number messages received, whose serial number specified this ONU. (R) (optional)
84// (4-bytes)
85//
86// Request_Registration Messages Received
87// Request_registration messages received: This attribute counts the number of request_registration
88// messages received. (R) (optional) (4-bytes)
89//
90// Assign_Alloc_Id Messages Received
91// Assign_alloc-ID messages received: This attribute counts the number of assign_alloc-ID messages
92// received. (R) (optional) (4-bytes)
93//
94// Key_Control Messages Received
95// Key_control messages received: This attribute counts the number of key_control messages
96// received, either directed to this ONU or broadcast to all ONUs. (R) (optional) (4-bytes)
97//
98// Sleep_Allow Messages Received
99// Sleep_allow messages received: This attribute counts the number of sleep_allow messages
100// received, either directed to this ONU or broadcast to all ONUs. (R) (optional) (4-bytes)
101//
102// Baseline Omci Messages Received Count
103// Baseline OMCI messages received count: This attribute counts the number of OMCI messages
104// received in the baseline message format. (R) (optional) (4-bytes)
105//
106// Extended Omci Messages Received Count
107// Extended OMCI messages received count: This attribute counts the number of OMCI messages
108// received in the extended message format. (R) (optional) (4-bytes)
109//
110// Assign_Onu_Id Messages Received
111// Assign_ONU-ID messages received: This attribute counts the number of assign_ONU-ID messages
112// received since the last re-boot. (R) (optional) (4-bytes)
113//
114// Omci Mic Error Count
115// OMCI MIC error count: This attribute counts MIC errors detected in OMCI messages directed to
116// this ONU. (R) (optional) (4-bytes)
117//
118type XgPonDownstreamManagementPerformanceMonitoringHistoryData struct {
119 ManagedEntityDefinition
120 Attributes AttributeValueMap
121}
122
123func init() {
124 xgpondownstreammanagementperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
125 Name: "XgPonDownstreamManagementPerformanceMonitoringHistoryData",
126 ClassID: 345,
127 MessageTypes: mapset.NewSetWith(
128 Create,
129 Delete,
130 Get,
131 Set,
132 ),
133 AllowedAttributeMask: 0xffff,
134 AttributeDefinitions: AttributeDefinitionMap{
135 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
136 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
137 2: Uint16Field("ThresholdData12Id", PointerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
138 3: Uint32Field("PloamMessageIntegrityCheckMicErrorCount", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, true, false, 3),
139 4: Uint32Field("DownstreamPloamMessagesCount", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, true, false, 4),
140 5: Uint32Field("ProfileMessagesReceived", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, true, false, 5),
141 6: Uint32Field("RangingTimeMessagesReceived", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
142 7: Uint32Field("DeactivateOnuIdMessagesReceived", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, true, false, 7),
143 8: Uint32Field("DisableSerialNumberMessagesReceived", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8),
144 9: Uint32Field("RequestRegistrationMessagesReceived", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, true, false, 9),
145 10: Uint32Field("AssignAllocIdMessagesReceived", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, true, false, 10),
146 11: Uint32Field("KeyControlMessagesReceived", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, true, false, 11),
147 12: Uint32Field("SleepAllowMessagesReceived", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, true, false, 12),
148 13: Uint32Field("BaselineOmciMessagesReceivedCount", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, true, false, 13),
149 14: Uint32Field("ExtendedOmciMessagesReceivedCount", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, true, false, 14),
150 15: Uint32Field("AssignOnuIdMessagesReceived", CounterAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, true, false, 15),
151 16: Uint32Field("OmciMicErrorCount", CounterAttributeType, 0x0001, 0, mapset.NewSetWith(Read), false, true, false, 16),
152 },
153 Access: CreatedByOlt,
154 Support: UnknownSupport,
155 }
156}
157
158// NewXgPonDownstreamManagementPerformanceMonitoringHistoryData (class ID 345) creates the basic
159// Managed Entity definition that is used to validate an ME of this type that
160// is received from or transmitted to the OMCC.
161func NewXgPonDownstreamManagementPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
162 return NewManagedEntity(*xgpondownstreammanagementperformancemonitoringhistorydataBME, params...)
163}