blob: e8facf803f19a13214d71f49fa0363540b309d76 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
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 */
20package generated
21
22import "github.com/deckarep/golang-set"
23
24const XgPonDownstreamManagementPerformanceMonitoringHistoryDataClassId ClassID = ClassID(345)
25
26var xgpondownstreammanagementperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// XgPonDownstreamManagementPerformanceMonitoringHistoryData (class ID #345)
29// This ME collects PM data associated with the XG-PON TC layer. It collects counters associated
30// with downstream PLOAM and OMCI messages.
31//
32// For a complete discussion of generic PM architecture, refer to clause I.4.
33//
34// Relationships
35// An instance of this ME is associated with an ANI-G.
36//
37// Attributes
38// Managed Entity Id
39// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
40// identical ID, this ME is implicitly linked to an instance of the ANI-G. (R, set-by-create)
41// (mandatory) (2 bytes)
42//
43// Interval End Time
44// Interval end time: This attribute identifies the most recently finished 15 min interval. (R)
45// (mandatory) (1 byte)
46//
47// Threshold Data 1_2 Id
48// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
49// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
50// data 2 ME is optional. (R, W, set-by-create) (mandatory) (2 bytes)
51//
52// Ploam Message Integrity Check Mic Error Count
53// PLOAM message integrity check (MIC) error count: This attribute counts MIC errors detected in
54// downstream PLOAM messages, either directed to this ONU or broadcast to all ONUs. (R) (optional)
55// (4 bytes)
56//
57// Downstream Ploam Messages Count
58// Downstream PLOAM messages count: This attribute counts PLOAM messages received, either directed
59// to this ONU or broadcast to all ONUs. (R) (optional) (4 bytes)
60//
61// Profile Messages Received
62// Profile messages received: This attribute counts the number of profile messages received, either
63// directed to this ONU or broadcast to all ONUs. In [ITU-T G.9807.1], this attribute is used for
64// received burst_profile message count. (R) (optional) (4 bytes)
65//
66// Ranging_Time Messages Received
67// Ranging_time messages received: This attribute counts the number of ranging_time messages
68// received, either directed to this ONU or broadcast to all ONUs. (R) (mandatory) (4 bytes)
69//
70// Deactivate_Onu_Id Messages Received
71// Deactivate_ONU-ID messages received: This attribute counts the number of deactivate_ONU-ID
72// messages received, either directed to this ONU or broadcast to all ONUs. Deactivate_ONU-ID
73// messages do not reset this counter. (R) (optional) (4 bytes)
74//
75// Disable_Serial_Number Messages Received
76// Disable_serial_number messages received: This attribute counts the number of
77// disable_serial_number messages received, whose serial number specified this ONU. (R) (optional)
78// (4 bytes)
79//
80// Request_Registration Messages Received
81// Request_registration messages received: This attribute counts the number of request_registration
82// messages received. (R) (optional) (4 bytes)
83//
84// Assign_Alloc_Id Messages Received
85// Assign_alloc-ID messages received: This attribute counts the number of assign_alloc-ID messages
86// received. (R) (optional) (4 bytes)
87//
88// Key_Control Messages Received
89// Key_control messages received: This attribute counts the number of key_control messages
90// received, either directed to this ONU or broadcast to all ONUs. (R) (optional) (4 bytes)
91//
92// Sleep_Allow Messages Received
93// Sleep_allow messages received: This attribute counts the number of sleep_allow messages
94// received, either directed to this ONU or broadcast to all ONUs. (R) (optional) (4 bytes)
95//
96// Baseline Omci Messages Received Count
97// Baseline OMCI messages received count: This attribute counts the number of OMCI messages
98// received in the baseline message format. (R) (optional) (4 bytes)
99//
100// Extended Omci Messages Received Count
101// Extended OMCI messages received count: This attribute counts the number of OMCI messages
102// received in the extended message format. (R) (optional) (4 bytes)
103//
104// Assign_Onu_Id Messages Received
105// Assign_ONU-ID messages received: This attribute counts the number of assign_ONU-ID messages
106// received since the last re-boot. (R) (optional) (4 bytes)
107//
108// Omci Mic Error Count
109// OMCI MIC error count: This attribute counts MIC errors detected in OMCI messages directed to
110// this ONU. (R) (optional) (4 bytes)
111//
112type XgPonDownstreamManagementPerformanceMonitoringHistoryData struct {
113 ManagedEntityDefinition
114 Attributes AttributeValueMap
115}
116
117func init() {
118 xgpondownstreammanagementperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
119 Name: "XgPonDownstreamManagementPerformanceMonitoringHistoryData",
120 ClassID: 345,
121 MessageTypes: mapset.NewSetWith(
122 Create,
123 Delete,
124 Get,
125 Set,
126 ),
127 AllowedAttributeMask: 0XFFFF,
128 AttributeDefinitions: AttributeDefinitionMap{
129 0: Uint16Field("ManagedEntityId", 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, false, 0),
130 1: ByteField("IntervalEndTime", 0, mapset.NewSetWith(Read), false, false, false, false, 1),
131 2: Uint16Field("ThresholdData12Id", 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, false, 2),
132 3: Uint32Field("PloamMessageIntegrityCheckMicErrorCount", 0, mapset.NewSetWith(Read), false, false, true, false, 3),
133 4: Uint32Field("DownstreamPloamMessagesCount", 0, mapset.NewSetWith(Read), false, false, true, false, 4),
134 5: Uint32Field("ProfileMessagesReceived", 0, mapset.NewSetWith(Read), false, false, true, false, 5),
135 6: Uint32Field("RangingTimeMessagesReceived", 0, mapset.NewSetWith(Read), false, false, false, false, 6),
136 7: Uint32Field("DeactivateOnuIdMessagesReceived", 0, mapset.NewSetWith(Read), false, false, true, false, 7),
137 8: Uint32Field("DisableSerialNumberMessagesReceived", 0, mapset.NewSetWith(Read), false, false, true, false, 8),
138 9: Uint32Field("RequestRegistrationMessagesReceived", 0, mapset.NewSetWith(Read), false, false, true, false, 9),
139 10: Uint32Field("AssignAllocIdMessagesReceived", 0, mapset.NewSetWith(Read), false, false, true, false, 10),
140 11: Uint32Field("KeyControlMessagesReceived", 0, mapset.NewSetWith(Read), false, false, true, false, 11),
141 12: Uint32Field("SleepAllowMessagesReceived", 0, mapset.NewSetWith(Read), false, false, true, false, 12),
142 13: Uint32Field("BaselineOmciMessagesReceivedCount", 0, mapset.NewSetWith(Read), false, false, true, false, 13),
143 14: Uint32Field("ExtendedOmciMessagesReceivedCount", 0, mapset.NewSetWith(Read), false, false, true, false, 14),
144 15: Uint32Field("AssignOnuIdMessagesReceived", 0, mapset.NewSetWith(Read), false, false, true, false, 15),
145 16: Uint32Field("OmciMicErrorCount", 0, mapset.NewSetWith(Read), false, false, true, false, 16),
146 },
147 }
148}
149
150// NewXgPonDownstreamManagementPerformanceMonitoringHistoryData (class ID 345 creates the basic
151// Managed Entity definition that is used to validate an ME of this type that
152// is received from the wire, about to be sent on the wire.
153func NewXgPonDownstreamManagementPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
154 return NewManagedEntity(xgpondownstreammanagementperformancemonitoringhistorydataBME, params...)
155}