blob: be7cccbc71cd4e136b275756091b6efa6c180076 [file] [log] [blame]
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07001/*
2 * Copyright (c) 2018 - present. Boling Consulting Solutions (bcsw.net)
Matteo Scandolof9d43412021-01-12 11:11:34 -08003 * Copyright 2020-present Open Networking Foundation
4
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07005 * 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
Matteo Scandolof9d43412021-01-12 11:11:34 -08008
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -07009 * http://www.apache.org/licenses/LICENSE-2.0
Matteo Scandolof9d43412021-01-12 11:11:34 -080010
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070011 * 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 */
Matteo Scandolof9d43412021-01-12 11:11:34 -080017
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070018package generated
19
20import "github.com/deckarep/golang-set"
21
Matteo Scandolof9d43412021-01-12 11:11:34 -080022// XgPonUpstreamManagementPerformanceMonitoringHistoryDataClassID is the 16-bit ID for the OMCI
23// Managed entity XG-PON upstream management performance monitoring history data
24const XgPonUpstreamManagementPerformanceMonitoringHistoryDataClassID ClassID = ClassID(346)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070025
26var xgponupstreammanagementperformancemonitoringhistorydataBME *ManagedEntityDefinition
27
28// XgPonUpstreamManagementPerformanceMonitoringHistoryData (class ID #346)
29// This ME collects PM data associated with the XG-PON TC layer. It counts upstream PLOAM messages
30// transmitted by the ONU.
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)
Matteo Scandolof9d43412021-01-12 11:11:34 -080041// (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070042//
43// Interval End Time
Matteo Scandolof9d43412021-01-12 11:11:34 -080044// Interval end time: This attribute identifies the most recently finished 15-min interval. (R)
45// (mandatory) (1-byte)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070046//
47// Threshold Data 1_2 Id
48// Threshold data 1/2 ID: No thresholds are defined for this ME. For uniformity with other PM, the
Matteo Scandolof9d43412021-01-12 11:11:34 -080049// attribute is retained and shown as mandatory, but it should be set to a null pointer. (R,-W,
50// set-by-create) (mandatory) (2-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070051//
52// Upstream Ploam Message Count
53// Upstream PLOAM message count: This attribute counts PLOAM messages transmitted upstream,
Matteo Scandolof9d43412021-01-12 11:11:34 -080054// excluding acknowledge messages. (R) (optional) (4-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070055//
56// Serial_Number_Onu Message Count
57// Serial_number_ONU message count: This attribute counts Serial_number_ONU PLOAM messages
Matteo Scandolof9d43412021-01-12 11:11:34 -080058// transmitted. (R) (optional) (4-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070059//
60// Registration Message Count
61// Registration message count: This attribute counts Registration PLOAM messages transmitted. (R)
Matteo Scandolof9d43412021-01-12 11:11:34 -080062// (optional) (4-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070063//
64// Key_Report Message Count
65// Key_report message count: This attribute counts key_report PLOAM messages transmitted. (R)
Matteo Scandolof9d43412021-01-12 11:11:34 -080066// (optional) (4-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070067//
68// Acknowledge Message Count
69// Acknowledge message count: This attribute counts acknowledge PLOAM messages transmitted. It
70// includes all forms of acknowledgement (AK), including those transmitted in response to a PLOAM
Matteo Scandolof9d43412021-01-12 11:11:34 -080071// grant when the ONU has nothing to send. (R) (optional) (4-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070072//
73// Sleep_Request Message Count
74// Sleep_request message count: This attribute counts sleep_request PLOAM messages transmitted. (R)
Matteo Scandolof9d43412021-01-12 11:11:34 -080075// (optional) (4-bytes)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070076//
77type XgPonUpstreamManagementPerformanceMonitoringHistoryData struct {
78 ManagedEntityDefinition
79 Attributes AttributeValueMap
80}
81
82func init() {
83 xgponupstreammanagementperformancemonitoringhistorydataBME = &ManagedEntityDefinition{
84 Name: "XgPonUpstreamManagementPerformanceMonitoringHistoryData",
85 ClassID: 346,
86 MessageTypes: mapset.NewSetWith(
87 Create,
88 Delete,
89 Get,
90 Set,
91 ),
Matteo Scandolof9d43412021-01-12 11:11:34 -080092 AllowedAttributeMask: 0xff00,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -070093 AttributeDefinitions: AttributeDefinitionMap{
Matteo Scandolof9d43412021-01-12 11:11:34 -080094 0: Uint16Field("ManagedEntityId", PointerAttributeType, 0x0000, 0, mapset.NewSetWith(Read, SetByCreate), false, false, false, 0),
95 1: ByteField("IntervalEndTime", UnsignedIntegerAttributeType, 0x8000, 0, mapset.NewSetWith(Read), false, false, false, 1),
96 2: Uint16Field("ThresholdData12Id", PointerAttributeType, 0x4000, 0, mapset.NewSetWith(Read, SetByCreate, Write), false, false, false, 2),
97 3: Uint32Field("UpstreamPloamMessageCount", CounterAttributeType, 0x2000, 0, mapset.NewSetWith(Read), false, true, false, 3),
98 4: Uint32Field("SerialNumberOnuMessageCount", CounterAttributeType, 0x1000, 0, mapset.NewSetWith(Read), false, true, false, 4),
99 5: Uint32Field("RegistrationMessageCount", CounterAttributeType, 0x0800, 0, mapset.NewSetWith(Read), false, true, false, 5),
100 6: Uint32Field("KeyReportMessageCount", CounterAttributeType, 0x0400, 0, mapset.NewSetWith(Read), false, true, false, 6),
101 7: Uint32Field("AcknowledgeMessageCount", CounterAttributeType, 0x0200, 0, mapset.NewSetWith(Read), false, true, false, 7),
102 8: Uint32Field("SleepRequestMessageCount", CounterAttributeType, 0x0100, 0, mapset.NewSetWith(Read), false, true, false, 8),
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700103 },
Matteo Scandolof9d43412021-01-12 11:11:34 -0800104 Access: CreatedByOlt,
105 Support: UnknownSupport,
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700106 }
107}
108
Matteo Scandolof9d43412021-01-12 11:11:34 -0800109// NewXgPonUpstreamManagementPerformanceMonitoringHistoryData (class ID 346) creates the basic
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700110// Managed Entity definition that is used to validate an ME of this type that
Matteo Scandolof9d43412021-01-12 11:11:34 -0800111// is received from or transmitted to the OMCC.
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700112func NewXgPonUpstreamManagementPerformanceMonitoringHistoryData(params ...ParamData) (*ManagedEntity, OmciErrors) {
Matteo Scandolof9d43412021-01-12 11:11:34 -0800113 return NewManagedEntity(*xgponupstreammanagementperformancemonitoringhistorydataBME, params...)
Matteo Scandoloa6a3aee2019-11-26 13:30:14 -0700114}