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