-
Notifications
You must be signed in to change notification settings - Fork 5
/
xg-pondownstreammanagementperformancemonitoringhistorydata.go
168 lines (158 loc) · 8.71 KB
/
xg-pondownstreammanagementperformancemonitoringhistorydata.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
/*
* Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
* Copyright 2020-present Open Networking Foundation
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* NOTE: This file was generated, manual edits will be overwritten!
*
* Generated by 'goCodeGenerator.py':
* https://github.com/cboling/OMCI-parser/README.md
*/
package generated
import "github.com/deckarep/golang-set"
// XgPonDownstreamManagementPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
// Managed entity XG-PON downstream management performance monitoring history data
const XgPonDownstreamManagementPerformanceMonitoringHistoryDataClassID ClassID = ClassID(345)
var xgpondownstreammanagementperformancemonitoringhistorydataBME *ManagedEntityDefinition
// XgPonDownstreamManagementPerformanceMonitoringHistoryData (class ID #345)
// This ME collects PM data associated with the XG-PON TC layer. It collects counters associated
// with downstream PLOAM and OMCI messages.
//
// For a complete discussion of generic PM architecture, refer to clause I.4.
//
// Relationships
// An instance of this ME is associated with an ANI-G.
//
// Attributes
// Managed Entity Id
// Managed entity ID: This attribute uniquely identifies each instance of this ME. Through an
// identical ID, this ME is implicitly linked to an instance of the ANI-G. (R, set-by-create)
// (mandatory) (2-bytes)
//
// Interval End Time
// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
// (mandatory) (1-byte)
//
// Threshold Data 1_2 Id
// Threshold data 1/2 ID: This attribute points to an instance of the threshold data 1 ME that
// contains PM threshold values. Since no threshold value attribute number exceeds 7, a threshold
// data 2 ME is optional. (R,-W, set-by-create) (mandatory) (2-bytes)
//
// Ploam Message Integrity Check Mic Error Count
// PLOAM message integrity check (MIC) error count: This attribute counts MIC errors detected in
// downstream PLOAM messages, either directed to this ONU or broadcast to all ONUs. (R) (optional)
// (4-bytes)
//
// Downstream Ploam Messages Count
// Downstream PLOAM messages count: This attribute counts PLOAM messages received, either directed
// to this ONU or broadcast to all ONUs. (R) (optional) (4-bytes)
//
// Profile Messages Received
// Profile messages received: This attribute counts the number of profile messages received, either
// directed to this ONU or broadcast to all ONUs. In [ITU-T G.9807.1], this attribute is used for
// received burst_profile message count. (R) (optional) (4-bytes)
//
// Ranging_Time Messages Received
// Ranging_time messages received: This attribute counts the number of ranging_time messages
// received, either directed to this ONU or broadcast to all ONUs. (R) (mandatory) (4-bytes)
//
// Deactivate_Onu_Id Messages Received
// Deactivate_ONU-ID messages received: This attribute counts the number of deactivate_ONU-ID
// messages received, either directed to this ONU or broadcast to all ONUs. Deactivate_ONU-ID
// messages do not reset this counter. (R) (optional) (4-bytes)
//
// Disable_Serial_Number Messages Received
// Disable_serial_number messages received: This attribute counts the number of
// disable_serial_number messages received, whose serial number specified this ONU. (R) (optional)
// (4-bytes)
//
// Request_Registration Messages Received
// Request_registration messages received: This attribute counts the number of request_registration
// messages received. (R) (optional) (4-bytes)
//
// Assign_Alloc_Id Messages Received
// Assign_alloc-ID messages received: This attribute counts the number of assign_alloc-ID messages
// received. (R) (optional) (4-bytes)
//
// Key_Control Messages Received
// Key_control messages received: This attribute counts the number of key_control messages
// received, either directed to this ONU or broadcast to all ONUs. (R) (optional) (4-bytes)
//
// Sleep_Allow Messages Received
// Sleep_allow messages received: This attribute counts the number of sleep_allow messages
// received, either directed to this ONU or broadcast to all ONUs. (R) (optional) (4-bytes)
//
// Baseline Omci Messages Received Count
// Baseline OMCI messages received count: This attribute counts the number of OMCI messages
// received in the baseline message format. (R) (optional) (4-bytes)
//
// Extended Omci Messages Received Count
// Extended OMCI messages received count: This attribute counts the number of OMCI messages
// received in the extended message format. (R) (optional) (4-bytes)
//
// Assign_Onu_Id Messages Received
// Assign_ONU-ID messages received: This attribute counts the number of assign_ONU-ID messages
// received since the last re-boot. (R) (optional) (4-bytes)
//
// Omci Mic Error Count
// OMCI MIC error count: This attribute counts MIC errors detected in OMCI messages directed to
// this ONU. (R) (optional) (4-bytes)
//
type XgPonDownstreamManagementPerformanceMonitoringHistoryData struct {
ManagedEntityDefinition
Attributes AttributeValueMap
}
func init() {
xgpondownstreammanagementperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
Name: "XgPonDownstreamManagementPerformanceMonitoringHistoryData",
ClassID: 345,
MessageTypes: mapset.NewSetWith(
Create,
Delete,
Get,
Set,
GetCurrentData,
),
AllowedAttributeMask: 0xffff,
AttributeDefinitions: AttributeDefinitionMap{
0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
2: Uint16Field("ThresholdData12Id", PointerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
3: Uint32Field("PloamMessageIntegrityCheckMicErrorCount", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, true, false, 3),
4: Uint32Field("DownstreamPloamMessagesCount", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, true, false, 4),
5: Uint32Field("ProfileMessagesReceived", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, true, false, 5),
6: Uint32Field("RangingTimeMessagesReceived", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, false, false, 6),
7: Uint32Field("DeactivateOnuIdMessagesReceived", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, true, false, 7),
8: Uint32Field("DisableSerialNumberMessagesReceived", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8),
9: Uint32Field("RequestRegistrationMessagesReceived", CounterAttributeType, 0x0080, 0, mapset.NewSetWith(Read), false, true, false, 9),
10: Uint32Field("AssignAllocIdMessagesReceived", CounterAttributeType, 0x0040, 0, mapset.NewSetWith(Read), false, true, false, 10),
11: Uint32Field("KeyControlMessagesReceived", CounterAttributeType, 0x0020, 0, mapset.NewSetWith(Read), false, true, false, 11),
12: Uint32Field("SleepAllowMessagesReceived", CounterAttributeType, 0x0010, 0, mapset.NewSetWith(Read), false, true, false, 12),
13: Uint32Field("BaselineOmciMessagesReceivedCount", CounterAttributeType, 0x0008, 0, mapset.NewSetWith(Read), false, true, false, 13),
14: Uint32Field("ExtendedOmciMessagesReceivedCount", CounterAttributeType, 0x0004, 0, mapset.NewSetWith(Read), false, true, false, 14),
15: Uint32Field("AssignOnuIdMessagesReceived", CounterAttributeType, 0x0002, 0, mapset.NewSetWith(Read), false, true, false, 15),
16: Uint32Field("OmciMicErrorCount", CounterAttributeType, 0x0001, 0, mapset.NewSetWith(Read), false, true, false, 16),
},
Access: CreatedByOlt,
Support: UnknownSupport,
Alarms: AlarmMap{
1: "PLOAM MIC error count",
2: "OMCI MIC error count",
},
}
}
// NewXgPonDownstreamManagementPerformanceMonitoringHistoryData (class ID 345) creates the basic
// Managed Entity definition that is used to validate an ME of this type that
// is received from or transmitted to the OMCC.
func NewXgPonDownstreamManagementPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
return NewManagedEntity(*xgpondownstreammanagementperformancemonitoringhistorydataBME, params...)
}