blob: 73fb1d12d559205e69187dcca868cde35a069e1e [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// XgPonUpstreamManagementPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
26// Managed entity XG-PON upstream management performance monitoring history data
27const XgPonUpstreamManagementPerformanceMonitoringHistoryDataClassID ClassID = ClassID(346)
28
29var xgponupstreammanagementperformancemonitoringhistorydataBME *ManagedEntityDefinition
30
31// XgPonUpstreamManagementPerformanceMonitoringHistoryData (class ID #346)
32// This ME collects PM data associated with the XG-PON TC layer. It counts upstream PLOAM messages
33// transmitted by the ONU.
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: No thresholds are defined for this ME. For uniformity with other PM, the
52// attribute is retained and shown as mandatory, but it should be set to a null pointer. (R,-W,
53// set-by-create) (mandatory) (2-bytes)
54//
55// Upstream Ploam Message Count
56// Upstream PLOAM message count: This attribute counts PLOAM messages transmitted upstream,
57// excluding acknowledge messages. (R) (optional) (4-bytes)
58//
59// Serial_Number_Onu Message Count
60// Serial_number_ONU message count: This attribute counts Serial_number_ONU PLOAM messages
61// transmitted. (R) (optional) (4-bytes)
62//
63// Registration Message Count
64// Registration message count: This attribute counts Registration PLOAM messages transmitted. (R)
65// (optional) (4-bytes)
66//
67// Key_Report Message Count
68// Key_report message count: This attribute counts key_report PLOAM messages transmitted. (R)
69// (optional) (4-bytes)
70//
71// Acknowledge Message Count
72// Acknowledge message count: This attribute counts acknowledge PLOAM messages transmitted. It
73// includes all forms of acknowledgement (AK), including those transmitted in response to a PLOAM
74// grant when the ONU has nothing to send. (R) (optional) (4-bytes)
75//
76// Sleep_Request Message Count
77// Sleep_request message count: This attribute counts sleep_request PLOAM messages transmitted. (R)
78// (optional) (4-bytes)
79//
80type XgPonUpstreamManagementPerformanceMonitoringHistoryData struct {
81 ManagedEntityDefinition
82 Attributes AttributeValueMap
83}
84
85func init() {
86 xgponupstreammanagementperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
87 Name: "XgPonUpstreamManagementPerformanceMonitoringHistoryData",
88 ClassID: 346,
89 MessageTypes: mapset.NewSetWith(
90 Create,
91 Delete,
92 Get,
93 Set,
94 ),
95 AllowedAttributeMask: 0xff00,
96 AttributeDefinitions: AttributeDefinitionMap{
97 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
98 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
99 2: Uint16Field("ThresholdData12Id", PointerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
100 3: Uint32Field("UpstreamPloamMessageCount", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, true, false, 3),
101 4: Uint32Field("SerialNumberOnuMessageCount", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, true, false, 4),
102 5: Uint32Field("RegistrationMessageCount", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, true, false, 5),
103 6: Uint32Field("KeyReportMessageCount", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, true, false, 6),
104 7: Uint32Field("AcknowledgeMessageCount", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, true, false, 7),
105 8: Uint32Field("SleepRequestMessageCount", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8),
106 },
107 Access: CreatedByOlt,
108 Support: UnknownSupport,
109 }
110}
111
112// NewXgPonUpstreamManagementPerformanceMonitoringHistoryData (class ID 346) creates the basic
113// Managed Entity definition that is used to validate an ME of this type that
114// is received from or transmitted to the OMCC.
115func NewXgPonUpstreamManagementPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
116 return NewManagedEntity(*xgponupstreammanagementperformancemonitoringhistorydataBME, params...)
117}